gui: Actions: Toggle backlight on power key

Create GUIAction to handle KEY_POWER with a screen backlight toggle.

Change-Id: Iad0a7923b4a776e0336722db74d6fc46cd0107a2
This commit is contained in:
Matt Mower
2016-01-20 18:12:47 -06:00
committed by Dees Troy
parent 874136434a
commit 9472ba1d39
13 changed files with 69 additions and 6 deletions
+3 -1
View File
@@ -205,7 +205,9 @@ bool InputHandler::processInput(int timeout_ms)
break;
}
blankTimer.resetTimerAndUnblank();
if (ev.code != KEY_POWER && ev.code > KEY_RESERVED)
blankTimer.resetTimerAndUnblank();
return true; // we got an event, so there might be more in the queue
}