Specify joystick (accelerometer) support for iOS in the config header.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 14 Oct 2011 00:20:44 -0400
changeset 5991 fdb8cc53adaa
parent 5990 75c796a375e1
child 5992 f4b73deb9d26
Specify joystick (accelerometer) support for iOS in the config header. Fixes Bugzilla #1292. Thanks to Vittorio Giovara for the patch!
include/SDL_config_iphoneos.h
--- a/include/SDL_config_iphoneos.h	Fri Aug 26 13:15:05 2011 +0100
+++ b/include/SDL_config_iphoneos.h	Fri Oct 14 00:20:44 2011 -0400
@@ -140,6 +140,9 @@
 /* enable iPhone keyboard support */
 #define SDL_IPHONE_KEYBOARD 1
 
+/* enable joystick subsystem */
+#define SDL_JOYSTICK_DISABLED 0
+
 /* Set max recognized G-force from accelerometer
    See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
  */