Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Check whether keyboard backlight is on
This snippet demonstrates how to check whether the keyboard backlight is off and how to turn it on. This snippet can be self-signed.
//necessary header file
HAL::Get( HALData::EKeyboardBacklightState, keyboardBacklightState);
//keyboard backlight is ON now.
//keyboard backlight is Off now.
//ResetInactivityTime will reset all user inactivity timers and backlight
//will be turn on
The keyboard backlight will be turned on. Notice that User::ResetInactivityTime also makes the screen backlight to be turned on.