TouchController
Basic Touch Controller interface.
Inherited by: I2CTouchController, NoTouchController, SDL2TouchController, SDLTouchController
Public Functions
virtual void | init() =0 |
Initializes touch controller. | |
virtual bool | sampleTouch(int32_t & x, int32_t & y) =0 |
Checks whether the touch screen is being touched, and if so, what coordinates. | |
virtual | ~TouchController() |
Finalizes an instance of the TouchController class. | |
Public Functions Documentation
init
virtual void init | ( | ) | =0 |
Initializes touch controller.
Reimplemented by: touchgfx::NoTouchController::init, touchgfx::SDL2TouchController::init, touchgfx::SDLTouchController::init, touchgfx::I2CTouchController::init
sampleTouch
virtual bool sampleTouch | ( | int32_t & | x , | =0 | |
int32_t & | y | =0 | |||
) | =0 |
Checks whether the touch screen is being touched, and if so, what coordinates.
Parameters:
x | The x position of the touch. |
y | The y position of the touch. |
Returns:
True if a touch has been detected, otherwise false.
Reimplemented by: touchgfx::NoTouchController::sampleTouch, touchgfx::SDL2TouchController::sampleTouch, touchgfx::SDLTouchController::sampleTouch, touchgfx::I2CTouchController::sampleTouch
~TouchController
virtual ~TouchController | ( | ) |
Finalizes an instance of the TouchController class.