SDLTouchController
TouchController for the simulator.
See: TouchController
Inherits from: TouchController
Public Functions
| virtual void | init() |
| Initializes touch controller. | |
| virtual bool | sampleTouch(int32_t & x, int32_t & y) |
| Checks whether the touch screen is being touched, and if so, what coordinates. | |
Additional inherited members
Public Functions inherited from TouchController
| virtual | ~TouchController() |
| Finalizes an instance of the TouchController class. | |
Public Functions Documentation
init
| virtual void init | ( | ) |
Initializes touch controller.
Reimplements: touchgfx::TouchController::init
sampleTouch
| virtual bool sampleTouch | ( | int32_t & | x , | ||
| int32_t & | y | ||||
| ) |
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