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

@@ -45,6 +45,11 @@
#undef SDL_JOYSTICK_HIDAPI_XBOXONE
#endif
#if defined(__IPHONEOS__) || defined(__TVOS__) || defined(__ANDROID__)
/* Very basic Steam Controller support on mobile devices */
#define SDL_JOYSTICK_HIDAPI_STEAM
#endif
/* Prevent rumble duration overflow */
#define SDL_MAX_RUMBLE_DURATION_MS 0x0fffffff