Re: [w3c/gamepad] Add -1 to the set of allowed indices (PR #158)

We discussed this and decided to refactor the ["A new gamepad" algorithm](https://w3c.github.io/gamepad/#constructing-a-gamepad) to take an index parameter, which can be undefined (in which case we will use the "selecting an unused gamepad index" algorithm). Then WebXR Gamepads module can create the Gamepad with index initialized to -1.

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

Message ID: <w3c/gamepad/pull/158/c1935133231@github.com>

Received on Friday, 9 February 2024 00:18:32 UTC