Class: GamepadsOptions

(package) rune.input.GamepadsOptions(optionsopt)

The GamepadOptions class represents a set of settings that can be applied to an instance of the Gamepads class. Note that this class is intended for internal use.

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: