mwg API
    Preparing search index...

    Function pollGamepads

    • 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.

      Parameters

      • pads: readonly (Gamepad | null)[] = ...

      Returns void