Re: [w3c/gamepad] Allow initializing the gamepad index to a specific value (PR #193)

@nondebug commented on this pull request.



> @@ -650,17 +650,24 @@ <h3>
           Constructing a `Gamepad`
         </h3>
         <p>
-          <dfn>A new `Gamepad`</dfn> representing a connected gamepad device is
-          constructed by performing the following steps:

The UA shouldn't decide the index, it's decided by the "select an unused gamepad index" algorithm which is based on the sequence of previous gamepad connections/disconnections.

Let's make |index| mandatory by moving index selection into the "when a gamepad becomes available on the system" steps.

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

Message ID: <w3c/gamepad/pull/193/review/2069805644@github.com>

Received on Tuesday, 21 May 2024 23:48:48 UTC