constants/eventcodes/gamepad.xbox.js

/**
 * @module EVENTCODES/GAMEPADS/XBOX
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * The XBOX gamepad 'VIBRATE_END' event code.
 * @type {'VibrateEnd'}
 * @constant
 *
 * @memberof module:EVENTCODES/GAMEPADS/XBOX
 */
const VIBRATE_END = 'VibrateEnd';

/**
 * The XBOX gamepad 'VIBRATE_START' event code.
 * @type {'VibrateStart'}
 * @constant
 *
 * @memberof module:EVENTCODES/GAMEPADS/XBOX
 */
const VIBRATE_START = 'VibrateStart';

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,
    VIBRATE_END,
    VIBRATE_START
};