Gleam - v1.0.2
    Preparing search index...

    Variable CONTROLLER_KEYSConst

    CONTROLLER_KEYS: {
        A: 0;
        B: 1;
        DOWN: 13;
        GUIDE: 16;
        LB: 4;
        LEFT: 14;
        LEFT_STICK: 10;
        LT: 6;
        RB: 5;
        RIGHT: 15;
        RIGHT_STICK: 11;
        RT: 7;
        SELECT: 8;
        START: 9;
        UP: 12;
        X: 2;
        Y: 3;
    } = ...

    Button indices for the standard gamepad mapping (W3C Gamepad spec). Use as the index into Controller.buttons.

    Type Declaration

    • ReadonlyA: 0

      Bottom face button — A on Xbox, × on PlayStation.

    • ReadonlyB: 1

      Right face button — B on Xbox, on PlayStation.

    • ReadonlyDOWN: 13

      D-pad down.

    • ReadonlyGUIDE: 16

      Guide / Home / PS button. Not exposed by all browsers.

    • ReadonlyLB: 4

      Left bumper / shoulder.

    • ReadonlyLEFT: 14

      D-pad left.

    • ReadonlyLEFT_STICK: 10

      Left stick click (L3).

    • ReadonlyLT: 6

      Left trigger. The digital pressed-state lives here; the analog value is on the underlying Gamepad.buttons[6].value.

    • ReadonlyRB: 5

      Right bumper / shoulder.

    • D-pad right.

    • ReadonlyRIGHT_STICK: 11

      Right stick click (R3).

    • ReadonlyRT: 7

      Right trigger. The digital pressed-state lives here; the analog value is on the underlying Gamepad.buttons[7].value.

    • ReadonlySELECT: 8

      Back / Select / Share.

    • ReadonlySTART: 9

      Start / Options / Menu.

    • ReadonlyUP: 12

      D-pad up.

    • ReadonlyX: 2

      Left face button — X on Xbox, on PlayStation.

    • ReadonlyY: 3

      Top face button — Y on Xbox, on PlayStation.