I2CTouchController
platform/driver/touch/I2CTouchController.hpp
Specific I2C-enabled type of Touch Controller.
See: TouchController
Inherits from: TouchController
Public Functions
| I2CTouchController(I2C & i2c) | |
| Constructor. | |
| 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 | ~I2CTouchController() |
Protected Attributes
Additional inherited members
Public Functions inherited from TouchController
| virtual | ~TouchController() |
| Finalizes an instance of the TouchController class. | |
Public Functions Documentation
I2CTouchController
| I2CTouchController | ( | I2C & | i2c | ) | |
init
| virtual void init | ( | ) | =0 |
Initializes touch controller.
Reimplements: touchgfx::TouchController::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.
Reimplements: touchgfx::TouchController::sampleTouch
~I2CTouchController
| virtual ~I2CTouchController | ( | ) |