include/SDL_hints.h
changeset 5555 3ecad5e5dbe4
parent 5554 4b4258be8699
child 6138 4c64952a58fb
     1.1 --- a/include/SDL_hints.h	Fri Jun 10 14:23:24 2011 +0100
     1.2 +++ b/include/SDL_hints.h	Fri Jun 10 14:23:36 2011 +0100
     1.3 @@ -120,6 +120,20 @@
     1.4  #define SDL_HINT_RENDER_VSYNC               "SDL_RENDER_VSYNC"
     1.5  	
     1.6  /**
     1.7 + *  \brief  A variable controlling whether the idle timer is disabled on iOS.
     1.8 + *
     1.9 + *  When an iOS app does not receive touches for some time, the screen is
    1.10 + *  dimmed automatically. For games where the accelerometer is the only input
    1.11 + *  this is problematic. This functionality can be disabled by setting this
    1.12 + *  hint.
    1.13 + *
    1.14 + *  This variable can be set to the following values:
    1.15 + *    "0"       - Enable idle timer
    1.16 + *    "1"       - Disable idle timer
    1.17 + */
    1.18 +#define SDL_HINT_IDLE_TIMER_DISABLED "SDL_IOS_IDLE_TIMER_DISABLED"
    1.19 +	
    1.20 +/**
    1.21   *  \brief  A variable controlling which orientations are allowed on iOS.
    1.22   *
    1.23   *  In some circumstances it is necessary to be able to explicitly control