Added support for the Steam Controller on mobile devices

This commit is contained in:
Sam Lantinga 2020-01-29 20:09:11 -08:00
parent c9c89783cb
commit 355f0b54ec
4 changed files with 12 additions and 9 deletions

View file

@ -74,14 +74,6 @@ struct _SDL_Joystick
struct _SDL_Joystick *next; /* pointer to next joystick we have allocated */
};
#if defined(__IPHONEOS__) || defined(__ANDROID__)
#define HAVE_STEAMCONTROLLERS
#define USE_STEAMCONTROLLER_HIDAPI
#elif defined(__LINUX__)
#define HAVE_STEAMCONTROLLERS
#define USE_STEAMCONTROLLER_LINUX
#endif
/* Device bus definitions */
#define SDL_HARDWARE_BUS_USB 0x03
#define SDL_HARDWARE_BUS_BLUETOOTH 0x05