#include <inputevent.h>
Public Member Functions | |
TouchEvent (int fingerID, int touchID, float x, float y, float pressure, int window=input::invalid, int wx=input::invalid, int wy=input::invalid) | |
bool | hasWindow () const |
![]() | |
WindowInputEvent (int window) | |
![]() | |
virtual | ~Event ()=default |
Event ()=default | |
Event (const Event &)=delete | |
Event & | operator= (const Event &)=delete |
Public Attributes | |
int | mFingerID |
The finger ID. More... | |
int | mTouchID |
The touch device ID. More... | |
float | mX |
The x-axis location of the touch event, normalized(0 - 1) More... | |
float | mY |
The y-axis location of the touch event, normalized(0 - 1) More... | |
float | mPressure |
The quantity of the pressure applied, normalized (0 - 1) More... | |
int | mXCoordinate |
The x-axis window coordinate, if any. -1 otherwise. More... | |
int | mYCoordinate |
The y-axis window coordinate, if any. -1 otherwise. More... | |
![]() | |
int | mWindow |
Window ID. More... | |
Base class for all touch input events
TouchEvent | ( | int | fingerID, |
int | touchID, | ||
float | x, | ||
float | y, | ||
float | pressure, | ||
int | window = input::invalid , |
||
int | wx = input::invalid , |
||
int | wy = input::invalid |
||
) |
bool hasWindow | ( | ) | const |
Returns if there is a window under the touch event
int mFingerID |
The finger ID.
float mPressure |
The quantity of the pressure applied, normalized (0 - 1)
int mTouchID |
The touch device ID.
float mX |
The x-axis location of the touch event, normalized(0 - 1)
int mXCoordinate |
The x-axis window coordinate, if any. -1 otherwise.
float mY |
The y-axis location of the touch event, normalized(0 - 1)
int mYCoordinate |
The y-axis window coordinate, if any. -1 otherwise.