Re: [w3c/gamepad] Length of getGamepads() array (#82)

In that case, wouldn't shortening it still leave holes?

In the event where all 4 gamepads are connected, and the 4th is then disconnected, the proposed array would have 3 items and the 4th would be out of bounds.

I think we should think about the `GamepadList` not as a traditional list but as something akin to port assignments on a home console. To remove an unoccupied index would imply that those indices are unavailable for usage and, in my option, to create that kind of assumption would not be something useful to developers.

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

Received on Thursday, 16 August 2018 20:09:38 UTC