MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / InputHandler

Function InputHandler

boards/_New-Device-Model/interface.cpp:37–58  ·  view source on GitHub ↗

** Function: InputHandler ** Handles the variables PrevPress, NextPress, SelPress, AnyKeyPress and EscPress **********************************************************************/

Source from the content-addressed store, hash-verified

35** Handles the variables PrevPress, NextPress, SelPress, AnyKeyPress and EscPress
36**********************************************************************/
37void 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; }
53END:
54 if (AnyKeyPress) {
55 long tmp = launcherMillis();
56 while ((launcherMillis() - tmp) < 200 && false /*Conditions fot all inputs*/);
57 }
58}
59
60/*********************************************************************
61** Function: keyboard

Callers

nothing calls this directly

Calls 3

checkPowerSaveTimeFunction · 0.85
wakeUpScreenFunction · 0.85
launcherMillisFunction · 0.85

Tested by

no test coverage detected