[Bug 17309] It is not defined what the value of Gamepad.index should be after disconnecting the gamepad

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17309

--- Comment #7 from Ted Mielczarek [:ted] <ted@mielczarek.org> ---
So, the spec currently says "When multiple gamepads are connected to a user
agent, indices MUST be assigned on a first-come, first-serve basis, starting at
zero. If a gamepad is disconnected, previously assigned indices MUST NOT be
reassigned to gamepads that continue to be connected. However, if a gamepad is
disconnected, and subsequently the same or a different gamepad is then
connected, index entries MUST be reused."

Given that, perhaps we should just leave .index alone, since if you reconnect
the same gamepad the spec says the index should be reused?

I suppose the followup question there is "should navigator.getGamepads()[<index
of a disconnected gamepad>] return the gamepad object with .connected == false,
or should it return null?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 22 March 2013 15:17:35 UTC