TouchEvent(); TouchEvent(EventType evtType, unsigned id, float _x, float _y, float wcontact = 0, float hcontact = 0, bool primary = true, float pressure = 1.0f);
The touch event constructor.
Parameters |
Description |
EventType evtType |
The type of the touch event that occurred, either TouchBegin, TouchEnd, TouchMove, TouchTap. |
unsigned id |
The id of the touch point. |
float _x |
The horizontal coordinate in relation to movie viewport at the time of touch event. |
float _y |
The vertical coordinate in relation to movie viewport at the time of touch event. |
float wcontact = 0 |
The width of the contact area. |
float hcontact = 0 |
The height of the contact area. |
bool primary = true |
Indicates whether the first point of contact is mapped to mouse events. |
float pressure = 1.0f |
A value to indicate force of the contact with the device. |