Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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.
This interface is accessible through the Gamepad.hapticActuators
property.
Properties
GamepadHapticActuator.type
Read only- Returns an enum representing the type of the haptic hardware.
Methods
GamepadHapticActuator.pulse()
Read only- Makes the hardware pulse at a certain intensity for a specified duration.
Examples
TBD.
Specifications
Specification | Status | Comment |
---|---|---|
Gamepad Extensions The definition of 'GamepadHapticActuator' in that specification. |
Editor's Draft | Initial definition |
Browser compatibility
BCD tables only load in the browser