Describes a Touch event. More...
Public Member Functions | |
var | getTouchID () |
Get touch identifier. | |
var | getEventType () |
Detect touch events. | |
Public Attributes | |
const | EVENT_START |
Touch started. | |
const | EVENT_END |
Touch ended. | |
const | EVENT_MOVE |
Touch changed position. | |
var | x |
Position X of the touch-point. | |
var | y |
Position Y of the touch-point. | |
Describes a Touch event.
Describes a touch event like a finger touch, a finger removed, and drag movement.
var GameEngine.Touch.TouchEvent.getEventType | ( | ) |
Detect touch events.
May return EVENT_START, EVENT_END or EVENT_MOVE.
var GameEngine.Touch.TouchEvent.getTouchID | ( | ) |
Get touch identifier.
Returns the identifier of the touch intercepted with the event.
var GameEngine.Touch.TouchEvent.x |
Position X of the touch-point.
May produce wrong results if used in a strangely formatted page.
var GameEngine.Touch.TouchEvent.y |
Position Y of the touch-point.
May produce wrong results if used in a strangely formatted page.