Web Gamepad API
await
navigator
.
getGamepads
()
window
.
addEventListener
(
'
gamepadconnected
'
,
...)
mdn docs
gamepad tester demo
vibration
(GamepadHapticActuator object)
vibrate