Package-level declarations
Types
The GamepadButton
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.
The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected_event and Window.gamepaddisconnected_event are fired in response to.
The GamepadHapticActuator
interface of the Gamepad API represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.
Properties
Functions
The playEffect()
method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect.
The reset()
method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect.