int LcdStayOn(int flag);
Controls whether the LCD on the device will dim after inactivity.
Return Value
Returns value not used.
Parameters
flag Whether the device's LCD should dim after the inactivity period defined in the device's Settings application. 0 = dim after inactivity; 1 = do not dim.
Remarks
LcdStayOn() allows you to control whether the screen should dim while your application is running. This may be useful, especially if your user does not touch the screen for long periods of time. For example, a game whose primary control comes from the Accelerometer functions (TiltGetX(), TiltGetY(), TiltGetZ())
Availability
Available in DragonFireSDK 1.3 and later.
Example
#include "DragonFireSDK.h"
void AppMain() { // Keep the LCD screen from dimming while the app is running. LcdStayOn(1); }
void AppExit() {
}
void OnTimer() {
} |