Commit 7f4860e2be573ef267939eaf2300f3cfe6880206

Sam Lantinga 2018-08-21T20:38:22

Doh.. __IPHONEOS__ is defined on tvOS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/include/SDL_config_iphoneos.h b/include/SDL_config_iphoneos.h
index e76a3f0..a0d4f52 100644
--- a/include/SDL_config_iphoneos.h
+++ b/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 */