[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

Ted Mielczarek [:ted] <ted@mielczarek.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |scott.w3bugzilla@h4ck3r.net

--- Comment #1 from Ted Mielczarek [:ted] <ted@mielczarek.org> 2012-06-04 17:00:01 UTC ---
Hm. This is a good point. I guess leaving it unchanged would be bad, because if
you plugged in a different gamepad, it could reuse the same index, so you could
get bad data.

Since this is JS, and we're writing WebIDL, I guess we could just make this a
nullable type, and say that it must be set to null when the gamepad is
disconnected. Does that sound reasonable?

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 4 June 2012 17:04:17 UTC