TouchInputEvent

class Event.TouchInputEvent()

Accessors

  • viewKey


Accessors

Event.viewKey()

Get the ViewKey this event is associated with.

Return type

ViewKey

Methods

getButtons

TouchInputEvent.getButtons()

gets the mouse buttons currently pressed with this event

Returns

the mouse buttons currently pressed for this event

Return type

Buttons

getDate

TouchInputEvent.getDate()

Gets the Date this event occurred

Returns

the event Date

Return type

Date

getEventType

TouchInputEvent.getEventType()

gets the event type

Returns

the type of touch event

Return type

TouchInputType

getHandled

TouchInputEvent.getHandled()

Gets the handled state of the event

Returns

whether the event has been handled

Return type

boolean

getId

TouchInputEvent.getId()

gets the id this event

Returns

the unique identifier for this touch

Return type

number

getPosition

TouchInputEvent.getPosition()

gets the window position of the mouse pointer for this event

Returns

the mouse position for this event

Return type

Point2

setHandled

TouchInputEvent.setHandled(handled)
Arguments
  • handled (boolean()) – Indicates whether this event has been handled.

Sets the handled state of the event. When an event has been handled it will not propagate any further

Return type

void