constants/input-codes/gamepad/gamepad.xbox.js

/**
 * @module INPUT_CODES/GAMEPADS/XBOX
 */

/**
 * The XBOX gamepad 'A' input code.
 * @type {'ClusterRightButtonBottom'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const A = 'ClusterRightButtonBottom';

/**
 * The XBOX gamepad 'B' input code.
 * @type {'ClusterRightButtonRight'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const B = 'ClusterRightButtonRight';

/**
 * The XBOX gamepad 'X' input code.
 * @type {'ClusterRightButtonLeft'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const X = 'ClusterRightButtonLeft';

/**
 * The XBOX gamepad 'Y' input code.
 * @type {'ClusterRightButtonTop'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const Y = 'ClusterRightButtonTop';

/**
 * The XBOX gamepad 'LB' input code.
 * @type {'ClusterFrontButtonTopLeft'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const LB = 'ClusterFrontButtonTopLeft';

/**
 * The XBOX gamepad 'RB' input code.
 * @type {'ClusterFrontButtonTopRight'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const RB = 'ClusterFrontButtonTopRight';

/**
 * The XBOX gamepad 'LT' input code.
 * @type {'ClusterFrontButtonBottomLeft'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const LT = 'ClusterFrontButtonBottomLeft';

/**
 * The XBOX gamepad 'RT' input code.
 * @type {'ClusterFrontButtonBottomRight'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const RT = 'ClusterFrontButtonBottomRight';

/**
 * The XBOX gamepad 'BACK' input code.
 * @type {'ClusterCenterButtonLeft'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const BACK = 'ClusterCenterButtonLeft';

/**
 * The XBOX gamepad 'START' input code.
 * @type {'ClusterCenterButtonRight'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const START = 'ClusterCenterButtonRight';

/**
 * The XBOX gamepad 'LSB' input code.
 * @type {'StickLeftButton'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const LSB = 'StickLeftButton';

/**
 * The XBOX gamepad 'RSB' input code.
 * @type {'StickRightButton'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const RSB = 'StickRightButton';

/**
 * The XBOX gamepad 'UP' input code.
 * @type {'ClusterLeftButtonTop'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const UP = 'ClusterLeftButtonTop';

/**
 * The XBOX gamepad 'DOWN' input code.
 * @type {'ClusterLeftButtonBottom'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const DOWN = 'ClusterLeftButtonBottom';

/**
 * The XBOX gamepad 'LEFT' input code.
 * @type {'ClusterLeftButtonLeft'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const LEFT = 'ClusterLeftButtonLeft';

/**
 * The XBOX gamepad 'RIGHT' input code.
 * @type {'ClusterLeftButtonRight'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const RIGHT = 'ClusterLeftButtonRight';

/**
 * The XBOX gamepad 'XBOX' input code.
 * @type {'ClusterCenterButtonCenter'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const XBOX = 'ClusterCenterButtonCenter';

/**
 * The XBOX gamepad 'LS_LEFT' input code.
 * @type {'StickLeftLeft'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const LS_LEFT = 'StickLeftLeft';

/**
 * The XBOX gamepad 'LS_RIGHT' input code.
 * @type {'StickLeftRight'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const LS_RIGHT = 'StickLeftRight';

/**
 * The XBOX gamepad 'LS_UP' input code.
 * @type {'StickLeftUp'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const LS_UP = 'StickLeftUp';

/**
 * The XBOX gamepad 'LS_DOWN' input code.
 * @type {'StickLeftDown'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const LS_DOWN = 'StickLeftDown';

/**
 * The XBOX gamepad 'RS_LEFT' input code.
 * @type {'StickRightLeft'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const RS_LEFT = 'StickRightLeft';

/**
 * The XBOX gamepad 'RS_RIGHT' input code.
 * @type {'StickRightRight'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const RS_RIGHT = 'StickRightRight';

/**
 * The XBOX gamepad 'RS_UP' input code.
 * @type {'StickRightUp'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const RS_UP = 'StickRightUp';

/**
 * The XBOX gamepad 'RS_DOWN' input code.
 * @type {'StickRightDown'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const RS_DOWN = 'StickRightDown';

/**
 * The XBOX gamepad 'CONNECTED' input code.
 * @type {'Connected'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const CONNECTED = 'Connected';

/**
 * The XBOX gamepad 'DISCONNECTED' input code.
 * @type {'Disconnected'}
 * @constant
 *
 * @memberof module:INPUT_CODES/GAMEPADS/XBOX
 */
const DISCONNECTED = 'Disconnected';

export {

    A,
    B,
    X,
    Y,

    LB,
    RB,
    LT,
    RT,

    BACK,
    START,

    LSB,
    RSB,

    UP,
    DOWN,
    LEFT,
    RIGHT,

    XBOX,

    LS_LEFT,
    LS_RIGHT,
    LS_UP,
    LS_DOWN,
    RS_LEFT,
    RS_RIGHT,
    RS_UP,
    RS_DOWN,

    CONNECTED,
    DISCONNECTED
};