From 7854f43b6d7a142a2e9ae724ea3ae2072b8d7fa8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 1 Dec 2020 14:43:15 -0800 Subject: [PATCH] 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. --- include/SDL_config_iphoneos.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/SDL_config_iphoneos.h b/include/SDL_config_iphoneos.h index 1c68020c1..451eb05d8 100644 --- a/include/SDL_config_iphoneos.h +++ b/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