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

@marcoscaceres commented on this pull request.



> +            global object=] of [=this=] using the [=gamepad task source=] to
+            run the following steps:
+              <ol>
+                <li>[=Resolve=]
+                [=this=].{{GamepadHapticActuator/[[playingEffectPromise]]}}
+                with {{GamepadHapticsResult/"preempted"}}.
+                </li>
+                <li>Set
+                [=this=].{{GamepadHapticActuator/[[playingEffectPromise]]}} to
+                `undefined`.
+                </li>
+              </ol>
+            </li>
+            <li>[=Stop haptic effects=] on this actuator.
+            </li>
+            <li>Return [=a promise resolved with=]

The promise should probably only resolve once it gets confirmation over IPC that the actuator has actually stopped. 

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

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

Received on Thursday, 23 June 2022 06:11:34 UTC