|
EX-Display
EX-Display
|
#include <InputManager.h>
Public Member Functions | |
| InputManager () | |
| Constructor for the InputManager. | |
| void | createInput () |
| Call once to create the InputInterface derived input. | |
| void | addInput (InputInterface *input) |
| Set the InputInterface. | |
| InputInterface * | getInput () |
| Get the configured InputInterface. | |
| void | setDisplay (DisplayInterface *display) |
| Set the display interface to retrieve required attributes - note this should only be required for TFT_eSPI touch screens that share the same instance between display and touch. | |
| void | startInput () |
| Start the configured input - calls the InputInterface::begin() method. | |
| void | setLogger (Logger *logger) |
| Set the Logger instance. | |
| void | setCallback (CallbackInterface *callback) |
| Set the CallbackInterface derived instance for user input to use for callbacks. | |
| ~InputManager () | |
| Destructor for the InputManager. | |
Private Attributes | |
| DisplayInterface * | _display |
| InputInterface * | _input |
| Logger * | _logger |
| CallbackInterface * | _callback |
| InputManager::InputManager | ( | ) |
Constructor for the InputManager.
| InputManager::~InputManager | ( | ) |
Destructor for the InputManager.
| void InputManager::addInput | ( | InputInterface * | input | ) |
Set the InputInterface.
| input | Pointer to the InputInterface |
| void InputManager::createInput | ( | ) |
| InputInterface * InputManager::getInput | ( | ) |
Get the configured InputInterface.
| void InputManager::setCallback | ( | CallbackInterface * | callback | ) |
Set the CallbackInterface derived instance for user input to use for callbacks.
| callback | Pointer to the instance |
| void InputManager::setDisplay | ( | DisplayInterface * | display | ) |
Set the display interface to retrieve required attributes - note this should only be required for TFT_eSPI touch screens that share the same instance between display and touch.
| display | Pointer to the DisplayInterface |
| void InputManager::setLogger | ( | Logger * | logger | ) |
| void InputManager::startInput | ( | ) |
Start the configured input - calls the InputInterface::begin() method.
|
private |
|
private |
|
private |
|
private |