Adds an event listener for the specified event type. The callback will be called when the event is triggered.
The event type to listen for
The callback to call when the event is triggered
Optional
options: EventListenerOptionsThe options for adding the event listener
Removes the event listener from the specified event type. If no queue is specified the listener will be removed from all queues.
The event type to remove the listener from
The callback to remove
Optional
options: EventListenerOptionsThe options for removing the event listener
The input system is responsible for handling all input events like pointer events (mouse, touch, xr controllers) and keyboard events.