Re: [w3c/gamepad] extensions: Add vibrationActuator and dual-rumble effect (PR #163)

@cabanier commented on this pull request.



>        </p>
       <pre class="idl">
         [Exposed=Window]
         interface GamepadHapticActuator {
           readonly attribute GamepadHapticActuatorType type;
+          boolean canPlayEffectType(GamepadHapticEffectType type);
+          Promise&lt;GamepadHapticsResult&gt; playEffect(
+              GamepadHapticEffectType type,
+              optional GamepadEffectParameters params = {});
           Promise&lt;boolean&gt; pulse(double value, double duration);

The quest browser implemented pulse and it's widely use by WebXR experiences so it ca't be removed

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/163#discussion_r998118506
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/gamepad/pull/163/review/1145663431@github.com>

Received on Tuesday, 18 October 2022 12:06:53 UTC