Alpha
Alpha
Optional
options: { pointerLock?: boolean } = {}The options.
Optional
pointerLock?: booleanWhether to enable pointer lock.
Alpha
_buttonProtected
Alpha
_elementAlpha
deltasThe button deltas.
The key deltas.
The mouse deltas.
The wheel deltas.
Static
Readonly
Alpha
keyThe key codes for the keyboard keys.
Alpha
Alpha
Alpha
Fires an event with the given name and arguments.
The event name to fire.
The arguments to pass to the event listeners.
Alpha
Removes an event listener for the specified event.
The event name to stop listening for.
The callback function to remove.
Alpha
Adds an event listener for the specified event.
The event name to listen for.
The callback function to execute when the event is triggered.
Alpha
The button deltas.
The key deltas.
The mouse deltas.
The wheel deltas.
Keyboard and mouse input source class