Gamepad input specific configuration settings.
The name of the class.more details
A readonly collection of all gamepads detected.more details
Determines what focus is required for gamepad events to be dispatched.more details
The name of the class. The declared class name is formatted as
A readonly collection of all gamepads detected. Can be watched for gamepads to be connected or disconnected.
- enabledFocusMode String
Determines what focus is required for gamepad events to be dispatched.
Possible values: document | view | none
Possible Value Description document Gamepad events are emitted when any part of the current webpage has focus. This allows for gamepad events being emitted even while a UI element is focused. view Gamepad events are emitted when the view container element has browser focus. This is useful when multiple views might be present on a single webpage. none Gamepad events are emitted independently of focus.
- Default Value:document
API Reference search results