The gamepads are sorted by their indices given by the Gamepad API. This is great and all but it leads to trouble when you try to loop over the gamepads. All the gamepads should be pushed to an array in order and their indices should be track on the gamepad object itself.
The gamepads are sorted by their indices given by the Gamepad API. This is great and all but it leads to trouble when you try to loop over the gamepads. All the gamepads should be pushed to an array in order and their indices should be track on the gamepad object itself.