Input library for the STMstation P.1. Facilitates button state checking and battery voltage checking.
STMstation_input Class Reference
Input library for the STMstation P.1 Provides information on button states (keydown, keyup, keypress) for each of the 10 user buttons (up, down, left, right, a, b, x, y, start, select). More...
#include <STMstation_input.h>
Public Member Functions | |
STMstation_input () | |
Create an instance of STMstation_input. | |
void | updateButtons () |
Update the state of all buttons. | |
bool | keyDown (Button b) |
Check if a keydown event has occurred. | |
bool | keyUp (Button b) |
Check if a keyup event has occurred. | |
bool | keyPress (Button b) |
Check if a button is pressed. | |
float | batCheck () |
Check battery voltage. |
Detailed Description
Input library for the STMstation P.1 Provides information on button states (keydown, keyup, keypress) for each of the 10 user buttons (up, down, left, right, a, b, x, y, start, select).
Definition at line 23 of file STMstation_input.h.
Constructor & Destructor Documentation
STMstation_input | ( | ) |
Create an instance of STMstation_input.
Definition at line 4 of file STMstation_input.cpp.
Member Function Documentation
float batCheck | ( | ) |
Check battery voltage.
Definition at line 69 of file STMstation_input.cpp.
bool keyDown | ( | Button | b ) |
Check if a keydown event has occurred.
Definition at line 42 of file STMstation_input.cpp.
bool keyPress | ( | Button | b ) |
Check if a button is pressed.
Definition at line 60 of file STMstation_input.cpp.
bool keyUp | ( | Button | b ) |
Check if a keyup event has occurred.
Definition at line 51 of file STMstation_input.cpp.
void updateButtons | ( | ) |
Update the state of all buttons.
Definition at line 10 of file STMstation_input.cpp.
Generated on Sat Jul 23 2022 20:05:01 by 1.7.2