Direct access to the game object event dispatcher.
Readonly
targetAlias for removeEventListener
. If only the eventName is specified
it will remove all handlers registered for that specific event. If the eventName
and the handler instance are specified only that handler will be removed.
Name of the event to listen for
Optional
handler: ((event: PointerEvent) => void)Event handler for the thrown event
Optional
handler: ((event: PointerEvent) => void)Optional
handler: ((event: PointerEvent) => void)Optional
handler: ((event: WheelEvent) => void)Alias for addEventListener
. You can listen for a variety of
events off of the engine; see the events section below for a complete list.
Name of the event to listen for
Event handler for the thrown event
Once listens to an event one time, then unsubscribes from that event
The name of the event to subscribe to once
The handler of the event that will be auto unsubscribed
Creates a new PointerEventReceiver with a new target and engine while preserving existing pointer event handlers.
The PointerEventProcessor is responsible for collecting all the events from the canvas and transforming them into GlobalCoordinates