Class that holds one user input made by keys (or encoder) or USART.
More...
#include <UserInputHandler.h>
|
UserInputDataTypes_t | DataType |
| Type of the user input data.
|
|
Keys_t | Key |
| Key pressed by the user if the DataType is USERDATA_KEY.
|
|
uint8_t | UsartChr |
| Character received via Usart if the DataType is USERDATA_USART.
|
|
OnOffButtons_t | OnOffButton |
| on/off button pressed by the user if the DataType is USERDATA_ON_OFF_BUTTONS
|
|
uint16_t | TouchX |
| X touch position if the DataType is USERDATA_TOUCH.
|
|
uint16_t | TouchY |
| Y touch position if the DataType is USERDATA_TOUCH.
|
|
TouchTypes | TouchType |
| Touch type if the DataType is USERDATA_TOUCH.
|
|
Class that holds one user input made by keys (or encoder) or USART.
◆ UserInputData() [1/4]
UserInputData::UserInputData |
( |
Keys_t | key | ) |
|
|
inline |
Constructor for the UserInputData class.
Use this constructor to initialize for a key.
- Parameters
-
key | Key that should be stored with this class. |
◆ UserInputData() [2/4]
UserInputData::UserInputData |
( |
uint8_t | usartChr | ) |
|
|
inline |
Constructor for the UserInputData class.
Use this constructor to initialize for a Usart character.
- Parameters
-
usartChr | Character that should be stored with this class. |
◆ UserInputData() [3/4]
Constructor for the UserInputData class.
Use this constructor to initialize for a physical on/off button.
- Parameters
-
button | on/off button that should be stored with this class. |
◆ UserInputData() [4/4]
UserInputData::UserInputData |
( |
uint16_t | touchX, |
|
|
uint16_t | touchY, |
|
|
TouchTypes | touchType ) |
|
inline |
Constructor for the UserInputData class.
Use this constructor to initialize for a touch input.
- Parameters
-
touchX | X touch position that should be stored with this class. |
touchY | Y touch position that should be stored with this class. |
touchType | Touch type that should be stored with this class. |
The documentation for this class was generated from the following file: