Works in Chrome
navigator.getGamepads()[0].vibrationActuator.type == "dual-rumble"
navigator.getGamepads()[1].vibrationActuator.playEffect("dual-rumble", {
duration: 1000, // ms
startDelay: 0, // ms
weakMagnitude: 1, // 0..1 (~left)
strongMagnitude: 1, // 0..1 (~right)
});
Works in Chrome