Gamepad : Object Represents a gamepad/controller. Connected gamepads are available through the %%/Navigator#getGamepads|**navigator.getGamepads()**%% method. Spec: https://w3c.github.io/gamepad/#dom-gamepad ---- instance.id : String An id for the controller. Press button on controller to connect. ReadOnly: true ---- instance.index : Number Press button on controller to connect. ReadOnly: true ---- instance.connected : Boolean **true** when the gamepad is connected. Press button on controller to connect. ReadOnly: true ---- instance.timestamp : Number The last time there was an update from the gamepad. In milliseconds. Press button on controller to connect.
ReadOnly: true ---- instance.mapping : String Either **''** or **'standard'**. If **'standard'**, the buttons/axes will follow the layout as seen at %%https://w3c.github.io/gamepad/#fig-visual-representation-of-a-standard-gamepad-layout|https://w3c.github.io/gamepad/#fig-visual-representation-of-a-standard-gamepad-layout%%. Press button on controller to connect. ReadOnly: true ---- instance.axes : Array The joystick positions. May also contain the direction pad (+) pressed direction. Press button on controller to connect.
ReadOnly: true ---- instance.buttons : Array The state of the buttons on the controller. Press button on controller to connect.
ReadOnly: true