Explorar o código

Disable SDL_JOYSTICK_HIDAPI on iOS and tvOS by default

It's only needed for Steam Controller support, and introduces a Bluetooth framework dependency which requires additional permissions on the App Store.
Sam Lantinga %!s(int64=4) %!d(string=hai) anos
pai
achega
7854f43b6d
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      include/SDL_config_iphoneos.h

+ 3 - 2
include/SDL_config_iphoneos.h

@@ -138,8 +138,9 @@
 /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
 #define SDL_HAPTIC_DUMMY 1
 
-/* Enable MFi joystick support */
-#define SDL_JOYSTICK_HIDAPI 1
+/* Enable joystick support */
+/* Only enable HIDAPI support if you want to support Steam Controllers on iOS and tvOS */
+/*#define SDL_JOYSTICK_HIDAPI 1*/
 #define SDL_JOYSTICK_MFI 1
 #define SDL_JOYSTICK_VIRTUAL    1