- From: Matt Reynolds <notifications@github.com>
- Date: Thu, 09 Feb 2023 15:00:40 -0800
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 February 2023 23:00:53 UTC
@nondebug commented on this pull request. > </li> <li>Set [=this=].{{GamepadHapticActuator/[[playingEffectPromise]]}} to `undefined`. </li> + <li>[=Queue a global task=] on the [=relevant global object=] + of [=this=] using the [=gamepad task source=] to [=resolve=] + |effectPromise| with {{GamepadHapticsResult/"preempted"}}. + </li> This path is for preempting the currently playing effect to prepare for the new effect. So there are two promises, the old effect promise and the new effect promise. We want to resolve the first promise (if it exists) and then create the new one. If we terminate here then we won't start the new effect. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/gamepad/pull/182#discussion_r1102109667 You are receiving this because you are subscribed to this thread. Message ID: <w3c/gamepad/pull/182/review/1292155950@github.com>
Received on Thursday, 9 February 2023 23:00:53 UTC