Commit 2eb7563e35fb7ae9d4a0466d3c437e1ba3fe5126

Sam Lantinga 2014-08-05T21:03:02

Haptics aren't available on iOS, but use the dummy implementation instead of failing init if it's requested.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/SDL_config_iphoneos.h b/include/SDL_config_iphoneos.h
index 11fd722..4e3eb2c 100644
--- a/include/SDL_config_iphoneos.h
+++ b/include/SDL_config_iphoneos.h
@@ -113,7 +113,7 @@
 #define SDL_AUDIO_DRIVER_DUMMY  1
 
 /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
-#define SDL_HAPTIC_DISABLED 1
+#define SDL_HAPTIC_DUMMY 1
 
 /* Enable Unix style SO loading */
 /* Technically this works, but it violates the iPhone developer agreement */