メイン・コンテンツまでスキップ

SDL2TouchController

TouchController for the simulator.

See: TouchController

Inherits from: TouchController

Public Functions

virtual voidinit()
Initializes touch controller.
virtual boolsampleTouch(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:
xThe x position of the touch.
yThe y position of the touch.
Returns:

True if a touch has been detected, otherwise false.

Reimplements: touchgfx::TouchController::sampleTouch