MCPcopy Create free account
hub / github.com/BruceDevices/firmware / InputHandler

Function InputHandler

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

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

checkPowerSaveTimeFunction · 0.85
wakeUpScreenFunction · 0.85
millisFunction · 0.85

Tested by

no test coverage detected