Variable GamepadButtonConst

GamepadButton: {
    A: number;
    B: number;
    C: number;
    D: number;
    DOWN: number;
    HOME: number;
    L1: number;
    L2: number;
    L3: number;
    LEFT: number;
    LEFT_ANALOGUE_BUT: number;
    LEFT_TRIGGER_A: number;
    LEFT_TRIGGER_B: number;
    R1: number;
    R2: number;
    R3: number;
    RIGHT: number;
    RIGHT_ANALOGUE_BUT: number;
    RIGHT_TRIGGER_A: number;
    RIGHT_TRIGGER_B: number;
    SELECT: number;
    START: number;
    UP: number;
    X: number;
    Y: number;
} = ...

Gamepad buttons contains a list of possible buttons.

Gamepads might contains more buttons that the ones declared in this list.

Type declaration

  • A: number

    Gamepad A button.

  • B: number

    Gamepad B button.

  • C: number

    Gamepad C button.

  • D: number

    Gamepad D button.

  • DOWN: number

    Gamepad DOWN button.

  • HOME: number

    Gamepad HOME button.

  • L1: number

    Gamepad L1 button.

  • L2: number

    Gamepad L2 button.

  • L3: number

    Gamepad L3 button.

  • LEFT: number

    Gamepad LEFT button.

  • LEFT_ANALOGUE_BUT: number

    Gamepad LEFT_ANALOGUE button.

  • LEFT_TRIGGER_A: number

    Gamepad LEFT_TRIGGER_A button.

  • LEFT_TRIGGER_B: number

    Gamepad LEFT_TRIGGER_B button.

  • R1: number

    Gamepad R1 button.

  • R2: number

    Gamepad R2 button.

  • R3: number

    Gamepad R3 button.

  • RIGHT: number

    Gamepad RIGHT button.

  • RIGHT_ANALOGUE_BUT: number

    Gamepad RIGHT_ANALOGUE button.

  • RIGHT_TRIGGER_A: number

    Gamepad RIGHT_TRIGGER_A button.

  • RIGHT_TRIGGER_B: number

    Gamepad RIGHT_TRIGGER_B button.

  • SELECT: number

    Gamepad SELECT button.

  • START: number

    Gamepad START button.

  • UP: number

    Gamepad UP button.

  • X: number

    Gamepad X button.

  • Y: number

    Gamepad Y button.