JavaScript Gamepad : Object
Represents a gamepad/controller. Connected gamepads are available through the
navigator.getGamepads()
method.
Instance Properties
The joystick positions. May also contain the direction pad (+) pressed direction.
Example:
RunResults:
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.
Example:
RunResults:
Copyright © PUBLIC Contributors