Sets whether the device should sleep when your app is idle. By default this is turned off, but if activated it will use the device settings to determine how long it should idle before sleeping.
Definition
SetSleepMode( mode )
void agk::SetSleepMode( int mode )
Parameters
mode - 1 to enable sleep mode, 0 to turn it off (default)