OpenRetroPad/src/gamepad/Gamepad.h

31 lines
535 B
C

#if GAMEPAD_OUTPUT == 0
#include "Debug-Gamepad/DebugGamepad.h"
#elif GAMEPAD_OUTPUT == 1
#include "Radio-Gamepad/RadioGamepad.h"
#elif GAMEPAD_OUTPUT == 2
#include "USB-Gamepad/UsbGamepad.h"
#elif GAMEPAD_OUTPUT == 3
#ifndef CONFIG_BT_ENABLED
#error BT output unsupported if CONFIG_BT_ENABLED is not set
#endif // not CONFIG_BT_ENABLED
#include "ESP32-BLE-Gamepad/BleGamepad.h"
#elif GAMEPAD_OUTPUT == 4
#include "UsbRadio-Gamepad/UsbRadioGamepad.h"
#else
#error Unsupported value for GAMEPAD_OUTPUT, must be 0-3
#endif