TouchInputEvent

class Communicator.Event.TouchInputEvent()

Methods

getButtons

TouchInputEvent.getButtons()

gets the mouse buttons currently pressed with this event

Return type

Buttons

Returns

the mouse buttons currently pressed for this event

getDate

TouchInputEvent.getDate()

Gets the Date this event occurred

Return type

Date

Returns

the event Date

getEventType

TouchInputEvent.getEventType()

gets the event type

Return type

TouchInputType

Returns

the type of touch event

getHandled

TouchInputEvent.getHandled()

Gets the handled state of the event

Return type

boolean

Returns

whether the event has been handled

getId

TouchInputEvent.getId()

gets the id this event

Return type

number

Returns

the unique identifier for this touch

getPosition

TouchInputEvent.getPosition()

gets the window position of the mouse pointer for this event

Return type

Point2()

Returns

the mouse position for this event

setHandled

TouchInputEvent.setHandled(handled)

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

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

Return type

void