Variable GAMEPADConst

GAMEPAD: {
    AXES: {
        EXTRA_1: number;
        EXTRA_2: number;
        EXTRA_3: number;
        EXTRA_4: number;
        LX: number;
        LY: number;
        RX: number;
        RY: number;
    };
    BUTTONS: {
        BACK: number;
        DOWN: number;
        EXTRA_1: number;
        EXTRA_2: number;
        EXTRA_3: number;
        EXTRA_4: number;
        FACE_1: number;
        FACE_2: number;
        FACE_3: number;
        FACE_4: number;
        FORWARD: number;
        HOME: number;
        L1: number;
        L2: number;
        L3: number;
        LEFT: number;
        R1: number;
        R2: number;
        R3: number;
        RIGHT: number;
        SELECT: number;
        START: number;
        UP: number;
    };
} = ...

Namespace for standard gamepad mapping constants

Type declaration

  • AXES: {
        EXTRA_1: number;
        EXTRA_2: number;
        EXTRA_3: number;
        EXTRA_4: number;
        LX: number;
        LY: number;
        RX: number;
        RY: number;
    }

    Standard gamepad mapping information for axes

    • Left control stick: LX (horizontal), LY (vertical)
    • Right control stick: RX (horizontal), RY (vertical)
    • Extras: EXTRA_1, EXTRA_2, EXTRA_3, EXTRA_4
    • EXTRA_1: number
    • EXTRA_2: number
    • EXTRA_3: number
    • EXTRA_4: number
    • LX: number
    • LY: number
    • RX: number
    • RY: number
  • BUTTONS: {
        BACK: number;
        DOWN: number;
        EXTRA_1: number;
        EXTRA_2: number;
        EXTRA_3: number;
        EXTRA_4: number;
        FACE_1: number;
        FACE_2: number;
        FACE_3: number;
        FACE_4: number;
        FORWARD: number;
        HOME: number;
        L1: number;
        L2: number;
        L3: number;
        LEFT: number;
        R1: number;
        R2: number;
        R3: number;
        RIGHT: number;
        SELECT: number;
        START: number;
        UP: number;
    }

    Standard gamepad mapping information for buttons

    • Face buttons: FACE_1, FACE_2, FACE_3, FACE_4
    • D-Pad: UP, DOWN, LEFT, RIGHT
    • Shoulder buttons: L1, L2, R1, R2
    • Analog stick (clicks): L3, R3
    • Navigation: SELECT (BACK), START (FORWARD), HOME
    • Extras: EXTRA_1, EXTRA_2, EXTRA_3, EXTRA_4
    • BACK: number
    • DOWN: number
    • EXTRA_1: number
    • EXTRA_2: number
    • EXTRA_3: number
    • EXTRA_4: number
    • FACE_1: number
    • FACE_2: number
    • FACE_3: number
    • FACE_4: number
    • FORWARD: number
    • HOME: number
    • L1: number
    • L2: number
    • L3: number
    • LEFT: number
    • R1: number
    • R2: number
    • R3: number
    • RIGHT: number
    • SELECT: number
    • START: number
    • UP: number