Direct access to the game object event dispatcher.
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
Optionalhandler: ((event: any) => void)
Event handler for the thrown event
addEventListener. You can listen for a variety of
events off of the engine; see the events section below for a complete list.
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
Provides keyboard support for Excalibur.