w3c / gamepad

Gamepad
https://w3c.github.io/gamepad/
Other
141 stars 48 forks source link

GamepadHapticActuator promises issues #200

Open gterzian opened 5 months ago

gterzian commented 5 months ago

There appear to be a couple of issues with the steps of playEffect() and reset() of the GamepadHapticActuator Interface:

playEffect:

reset:

Also it's not clear to me how to compute "are still the same" for two promises, so the spec could be explicit about it and add a generational counter internal slot, that would be passed around to parallel steps by cloning it to a variable and back to queued tasks for comparison with the internal slot.