** Function: InputHandler ** Handles the variables PrevPress, NextPress, SelPress, AnyKeyPress and EscPress **********************************************************************/
| 35 | ** Handles the variables PrevPress, NextPress, SelPress, AnyKeyPress and EscPress |
| 36 | **********************************************************************/ |
| 37 | void InputHandler(void) { |
| 38 | checkPowerSaveTime(); |
| 39 | PrevPress = false; |
| 40 | NextPress = false; |
| 41 | SelPress = false; |
| 42 | AnyKeyPress = false; |
| 43 | EscPress = false; |
| 44 | |
| 45 | if (false /*Conditions fot all inputs*/) { |
| 46 | if (!wakeUpScreen()) AnyKeyPress = true; |
| 47 | else goto END; |
| 48 | } |
| 49 | if (false /*Conditions for previous btn*/) { PrevPress = true; } |
| 50 | if (false /*Conditions for Next btn*/) { NextPress = true; } |
| 51 | if (false /*Conditions for Esc btn*/) { EscPress = true; } |
| 52 | if (false /*Conditions for Select btn*/) { SelPress = true; } |
| 53 | END: |
| 54 | if (AnyKeyPress) { |
| 55 | long tmp = launcherMillis(); |
| 56 | while ((launcherMillis() - tmp) < 200 && false /*Conditions fot all inputs*/); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /********************************************************************* |
| 61 | ** Function: keyboard |
nothing calls this directly
no test coverage detected