Folds every connected gamepad's buttons and axes into the same held-code state a keydown
would produce. There is no native "gamepad button pressed" event to attach a listener to
the Gamepad API only ever hands back a live snapshot - so this has to be polled once a
frame instead, which is why Game calls it right before updating the scene, before
endFrame clears the one-frame flags.
Folds every connected gamepad's buttons and axes into the same held-code state a keydown would produce. There is no native "gamepad button pressed" event to attach a listener to
Gamecalls it right before updating the scene, beforeendFrameclears the one-frame flags.