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

As much as it would make sense to do away with `GamepadList` a scenario I see occurring would be in the case where we have 3 or 4 gamepads connected and any of the middle gamepads disconnect.

In that case, the natural logic is to rebuild the array so there are no holes in it in terms of items. Doing that would disrupt the ability to properly keep track of gamepads that are still connected by shifting the indices.

Instead, why not modify the length property to reflect the number of connected gamepads, or simply have a separate property that keeps track of that altogether?

-- 
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-413647114

Received on Thursday, 16 August 2018 18:47:58 UTC