GamepadAPI
Types
gamepad
This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. See Gamepad on MDN
Record fields
gamepadButton
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. See GamepadButton on MDN
Record fields
gamepadEffectParameters
Record fields
duration
option< int >
startDelay
option< int >
strongMagnitude
option< float >
weakMagnitude
option< float >
leftTrigger
option< float >
rightTrigger
option< float >
gamepadHapticActuator
This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. See GamepadHapticActuator on MDN
Module
There are methods and helpers defined in GamepadHapticActuator .