Quellcode durchsuchen

Don't use CoreMotion on tvOS

Sam Lantinga vor 7 Jahren
Ursprung
Commit
74e99f7416
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      include/SDL_config_iphoneos.h

+ 4 - 0
include/SDL_config_iphoneos.h

@@ -139,8 +139,12 @@
 #define SDL_JOYSTICK_MFI 1
 #define SDL_JOYSTICK_MFI 1
 #define SDL_JOYSTICK_HIDAPI 1
 #define SDL_JOYSTICK_HIDAPI 1
 
 
+#ifdef __IPHONEOS__
 /* Enable the CoreMotion sensor driver */
 /* Enable the CoreMotion sensor driver */
 #define SDL_SENSOR_COREMOTION   1
 #define SDL_SENSOR_COREMOTION   1
+#else
+#define SDL_SENSOR_DUMMY    1
+#endif
 
 
 /* Enable Unix style SO loading */
 /* Enable Unix style SO loading */
 #define SDL_LOADSO_DLOPEN 1
 #define SDL_LOADSO_DLOPEN 1