constants/eventcodes/gamepad.playstation.js

/**
 * @module EVENTCODES/GAMEPADS/PLAYSTATION
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

export {

    CROSS,
    CIRCLE,
    SQUARE,
    TRIANGLE,

    L1,
    R1,
    L2,
    R2,

    SELECT,
    START,

    L3,
    R3,

    UP,
    DOWN,
    LEFT,
    RIGHT,

    PLAYSTATION,

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

    CONNECTED,
    DISCONNECTED,
    VIBRATE_END,
    VIBRATE_START
};