Constructor
(package) new GamepadsOptions(optionsopt)
Creates a new GamepadsOptions object.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
Object |
<optional> |
null | Used to override default settings. |
- Source:
Members
enable :boolean
Whether the gamepads subsystem should be enabled (true) or not (false).
If the property is set to false, no gamepad input is read.
Type:
- boolean
- Default Value:
- false
- Source:
onConnect :rune.util.Executable
Executes automatically when a new gamepad is connected.
Type:
- Default Value:
- null
- Source:
onDisconnect :rune.util.Executable
Executes automatically when a gamepad is disconnected.
Type:
- Default Value:
- null
- Source: