跳转到主要内容

NoTouchController

Empty TouchController implementation which does nothing. Use this if your display does not have touch input capabilities.

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