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.