TouchInputEvent

class Communicator.Event.TouchInputEvent()

Methods

getButtons()

getDate()

getEventType()

getHandled()

getId()

getPosition()

setHandled()


Methods

getButtons

Communicator.Event.TouchInputEvent.getButtons()

gets the mouse buttons currently pressed with this event

Return type

Communicator.Buttons

Returns

the mouse buttons currently pressed for this event

getDate

Communicator.Event.TouchInputEvent.getDate()

Gets the Date this event occurred

Return type

Date

Returns

the event Date

getEventType

Communicator.Event.TouchInputEvent.getEventType()

gets the event type

Return type

Communicator.TouchInputType

Returns

the type of touch event

getHandled

Communicator.Event.TouchInputEvent.getHandled()

Gets the handled state of the event

Return type

boolean

Returns

whether the event has been handled

getId

Communicator.Event.TouchInputEvent.getId()

gets the id this event

Return type

number

Returns

the unique identifier for this touch

getPosition

Communicator.Event.TouchInputEvent.getPosition()

gets the window position of the mouse pointer for this event

Return type

Communicator.Point2

Returns

the mouse position for this event

setHandled

Communicator.Event.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