Definition of check state of a button functions. More...
Go to the source code of this file.
Functions | |
void | checkButtonSetup (Button *btn) |
Check the state of an individual button just setup. More... | |
void | checkButtonJustPressed (Button *btn) |
Check state of a pressed button just pressed. More... | |
void | checkButtonJustReleased (Button *btn) |
Check button that has just been released. More... | |
void | checkButtonJustHeld (Button *btn) |
Check button that has just been held. More... | |
void | checkButtonJustIdle (Button *btn) |
Check button that has just become or remains idle. More... | |
void | checkButtonJustClicked (Button *btn) |
Check button that has just been clicked. More... | |
void | checkButtonJustSingleClicked (Button *btn) |
Check button that has just been single-clicked. More... | |
void | checkButtonJustDoubleClicked (Button *btn) |
Check button that has just been double-clicked. More... | |
void | checkButtonIntegrity (Button *btn, ButtonState &state) |
Check integrity of Button invariants (always hold true). More... | |
void | checkButtonListIntegrity () |
Check integrity of ButtonList invariants (always hold true). More... | |
void | displayButtonChanges (int index) |
Display button changes to Serial. More... | |
Variables | |
struct ButtonState | btnState [NUM_BUTTONS] |
Previous state for each button. More... | |
Definition of check state of a button functions.
Definition in file Checks.cpp.
void checkButtonIntegrity | ( | Button * | btn, |
ButtonState & | state | ||
) |
Check integrity of Button invariants (always hold true).
btn | The button to check. |
state | The tracked state of the button for comparison. |
Definition at line 202 of file Checks.cpp.
void checkButtonJustClicked | ( | Button * | btn | ) |
Check button that has just been clicked.
btn | The button to check. |
Definition at line 142 of file Checks.cpp.
void checkButtonJustDoubleClicked | ( | Button * | btn | ) |
Check button that has just been double-clicked.
btn | The button to check. |
Definition at line 177 of file Checks.cpp.
void checkButtonJustHeld | ( | Button * | btn | ) |
Check button that has just been held.
btn | The button to check. |
Definition at line 92 of file Checks.cpp.
void checkButtonJustIdle | ( | Button * | btn | ) |
Check button that has just become or remains idle.
btn | The button to check. |
Definition at line 117 of file Checks.cpp.
void checkButtonJustPressed | ( | Button * | btn | ) |
Check state of a pressed button just pressed.
btn | The button to check. |
Definition at line 42 of file Checks.cpp.
void checkButtonJustReleased | ( | Button * | btn | ) |
Check button that has just been released.
btn | The button to check. |
Definition at line 67 of file Checks.cpp.
void checkButtonJustSingleClicked | ( | Button * | btn | ) |
Check button that has just been single-clicked.
btn | The button to check. |
Definition at line 167 of file Checks.cpp.
void checkButtonListIntegrity | ( | ) |
Check integrity of ButtonList invariants (always hold true).
Definition at line 286 of file Checks.cpp.
void checkButtonSetup | ( | Button * | btn | ) |
Check the state of an individual button just setup.
btn | The button to check. |
Definition at line 17 of file Checks.cpp.
void displayButtonChanges | ( | int | index | ) |
Display button changes to Serial.
index | Which button in the button list to check. |
Definition at line 347 of file Checks.cpp.
struct ButtonState btnState[NUM_BUTTONS] |
Previous state for each button.
Definition at line 9 of file Checks.cpp.