Gamepad haptic feedbackLimited availability
The gamepad.vibrationActuator property represents a gamepad's haptics hardware, which allows you to control the vibration motors in a gamepad.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–67Not supported
68+Supportedsince Jul 24, 2018
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
1–16.3Not supported
16.4+Supportedsince Mar 27, 2023
Current: 27MobileChrome Android
18–67Not supported
68+Supportedsince Jul 24, 2018
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Firefox, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: hapticActuators.
Feature detection
JS · check before using
if ("GamepadHapticActuator" in globalThis) {
// GamepadHapticActuator is available
} else {
// load a polyfill or use a fallback
}Sub-features
Support for each part of the feature (11). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Gamepad.hapticActuators | ✕ | ✕ | 55 | ✕ | ✕ | 55 | ✕ |
| Gamepad.vibrationActuator | 68 | 79 | ✕ | 16.4 | 68 | ✕ | ✕ |
| GamepadHapticActuator | 68 | 15 | 55 | 16.4 | 68 | 55 | ✕ |
| GamepadHapticActuator.effects | 126 | 126 | ✕ | ✕ | 126 | ✕ | ✕ |
| GamepadHapticActuator.effects.type_trigger-rumble | 126 | 126 | ✕ | ✕ | 126 | ✕ | ✕ |
| GamepadHapticActuator.playEffect | 68 | 15 | ✕ | 16.4 | 68 | ✕ | ✕ |
| GamepadHapticActuator.playEffect.params_leftTrigger_parameter | 126 | 126 | ✕ | ✕ | 126 | ✕ | ✕ |
| GamepadHapticActuator.playEffect.params_rightTrigger_parameter | 126 | 126 | ✕ | ✕ | 126 | ✕ | ✕ |
| GamepadHapticActuator.playEffect.type_trigger-rumble | 126 | 126 | ✕ | ✕ | 126 | ✕ | ✕ |
| GamepadHapticActuator.pulse | ✕ | ✕ | 55 | ✕ | ✕ | 55 | ✕ |
| GamepadHapticActuator.reset | 68 | 15 | ✕ | 16.4 | 68 | ✕ | ✕ |