Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2015-05-17 21:30:34
Size: 923
Comment: Updated with content from header file.
Revision 4 as of 2015-05-31 19:55:06
Size: 919
Comment: Removed ???.
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
By default the idle timer is enabled. ??? By default the idle timer is enabled.

DRAFT

SDL_HINT_IDLE_TIMER_DISABLED

A hint that specifies a variable controlling whether the idle timer is disabled on iOS.

Values

0

enable idle timer

1

disable idle timer

Default

By default the idle timer is enabled.

Code Examples

You can add your code example here

Remarks

When an iOS application does not receive touches for some time, the screen is dimmed automatically. For games where the accelerometer is the only input this is problematic. This functionality can be disabled by setting this hint.

As of SDL 2.0.4, SDL_EnableScreenSaver() and SDL_DisableScreenSaver() accomplish the same thing on iOS. They should be preferred over this hint.


CategoryDefine, CategoryHints

None: SDL_HINT_IDLE_TIMER_DISABLED (last edited 2015-05-31 19:55:06 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit