constants/eventcodes/gamepad.xbox.js

/**
 * @module EVENTCODES/GAMEPADXBOX
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

export {

    A,
    B,
    X,
    Y,

    LB,
    RB,
    LT,
    RT,

    BACK,
    START,

    LSB,
    RSB,

    UP,
    DOWN,
    LEFT,
    RIGHT,

    XBOX,

    LSLEFT,
    LSRIGHT,
    LSUP,
    LSDOWN,
    RSLEFT,
    RSRIGHT,
    RSUP,
    RSDOWN,

    CONNECTED,
    DISCONNECTED,
    VIBRATEEND,
    VIBRATESTART
};