Skip to content

API Variable GAMEPAD_BUTTONS

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Variable: GAMEPAD_BUTTONS

const GAMEPAD_BUTTONS: readonly ["buttonSouth", "buttonEast", "buttonWest", "buttonNorth", "leftShoulder", "rightShoulder", "leftTrigger", "rightTrigger", "select", "start", "leftStickPress", "rightStickPress", "dpadUp", "dpadDown", "dpadLeft", "dpadRight", "home", "misc1", "rightPaddle1", "leftPaddle1", "rightPaddle2", "leftPaddle2", "touchpadPress"];

Defined in: src/engine/input/controls.ts:20

Gamepad buttons in wire order. Triggers (6, 7) are analog, 0..1.

Clone this wiki locally