Parcourir la source

Doh.. __IPHONEOS__ is defined on tvOS

Sam Lantinga il y a 7 ans
Parent
commit
7f4860e2be
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      include/SDL_config_iphoneos.h

+ 3 - 3
include/SDL_config_iphoneos.h

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