|
@@ -47,7 +47,14 @@
|
|
|
#define SDL_JOYSTICK_HIDAPI_SHIELD
|
|
|
|
|
|
/* Whether HIDAPI is enabled by default */
|
|
|
+#if defined(__ANDROID__) || \
|
|
|
+ defined(__IPHONEOS__) || \
|
|
|
+ defined(__TVOS__)
|
|
|
+/* On Android, HIDAPI prompts for permissions and acquires exclusive access to the device, and on Apple mobile platforms it doesn't do anything except for handling Bluetooth Steam Controllers, so we'll leave it off by default. */
|
|
|
+#define SDL_HIDAPI_DEFAULT SDL_FALSE
|
|
|
+#else
|
|
|
#define SDL_HIDAPI_DEFAULT SDL_TRUE
|
|
|
+#endif
|
|
|
|
|
|
/* The maximum size of a USB packet for HID devices */
|
|
|
#define USB_PACKET_LENGTH 64
|