EX-Display
EX-Display
Loading...
Searching...
No Matches
InputManager Class Reference

#include <InputManager.h>

Collaboration diagram for InputManager:
[legend]

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.
 
InputInterfacegetInput ()
 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
 

Constructor & Destructor Documentation

◆ InputManager()

InputManager::InputManager ( )

Constructor for the InputManager.

◆ ~InputManager()

InputManager::~InputManager ( )

Destructor for the InputManager.

Member Function Documentation

◆ addInput()

void InputManager::addInput ( InputInterface input)

Set the InputInterface.

Parameters
inputPointer to the InputInterface
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createInput()

void InputManager::createInput ( )

Call once to create the InputInterface derived input.

Here is the caller graph for this function:

◆ getInput()

InputInterface * InputManager::getInput ( )

Get the configured InputInterface.

Returns
Pointer to the input
Here is the caller graph for this function:

◆ setCallback()

void InputManager::setCallback ( CallbackInterface callback)

Set the CallbackInterface derived instance for user input to use for callbacks.

Parameters
callbackPointer to the instance
Here is the caller graph for this function:

◆ setDisplay()

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.

Parameters
displayPointer to the DisplayInterface
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLogger()

void InputManager::setLogger ( Logger logger)

Set the Logger instance.

Parameters
loggerPointer to the Logger
Here is the caller graph for this function:

◆ startInput()

void InputManager::startInput ( )

Start the configured input - calls the InputInterface::begin() method.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _callback

CallbackInterface* InputManager::_callback
private

◆ _display

DisplayInterface* InputManager::_display
private

◆ _input

InputInterface* InputManager::_input
private

◆ _logger

Logger* InputManager::_logger
private

The documentation for this class was generated from the following files: