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 5991fdb8cc53adaa
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
     1.1 --- a/include/SDL_config_iphoneos.h	Fri Aug 26 13:15:05 2011 +0100
     1.2 +++ b/include/SDL_config_iphoneos.h	Fri Oct 14 00:20:44 2011 -0400
     1.3 @@ -140,6 +140,9 @@
     1.4  /* enable iPhone keyboard support */
     1.5  #define SDL_IPHONE_KEYBOARD 1
     1.6  
     1.7 +/* enable joystick subsystem */
     1.8 +#define SDL_JOYSTICK_DISABLED 0
     1.9 +
    1.10  /* Set max recognized G-force from accelerometer
    1.11     See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
    1.12   */