bindings/gamepad library
Gamepad
Classes
- Gamepad
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the Gamepad API defines an individual gamepad
or other controller, allowing access to information such as
button presses, axis positions, and id.
A Gamepad object can be returned in one of two ways: via the
gamepad property of the
gamepadconnected
andgamepaddisconnected
events, or by grabbing any position in the array returned by theNavigator.getGamepads()
method. - GamepadButton
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface defines an individual button of a gamepad or other
controller, allowing access to the current state of different
types of buttons available on the control device.
A object is returned by querying any value of the array returned
by the
buttons
property of the Gamepad interface. - GamepadEvent
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The GamepadEvent interface of the Gamepad API contains
references to gamepads connected to the system, which is what the
gamepad events
Window.gamepadconnected
andWindow.gamepaddisconnected
are fired in response to. - GamepadEventInit