UNPKG

@theatrejs/theatrejs

Version:

🎮 A JavaScript 2D Game Engine focused on creating pixel art games.

305 lines (266 loc) • 6.1 kB
/** * @module EVENT_CODES/GAMEPADS/PLAYSTATION */ /** * The PLAYSTATION gamepad 'CROSS' event code. * @type {'ClusterRightButtonBottom'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const CROSS = 'ClusterRightButtonBottom'; /** * The PLAYSTATION gamepad 'CIRCLE' event code. * @type {'ClusterRightButtonRight'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const CIRCLE = 'ClusterRightButtonRight'; /** * The PLAYSTATION gamepad 'SQUARE' event code. * @type {'ClusterRightButtonLeft'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const SQUARE = 'ClusterRightButtonLeft'; /** * The PLAYSTATION gamepad 'TRIANGLE' event code. * @type {'ClusterRightButtonTop'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const TRIANGLE = 'ClusterRightButtonTop'; /** * The PLAYSTATION gamepad 'L1' event code. * @type {'ClusterFrontButtonTopLeft'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const L1 = 'ClusterFrontButtonTopLeft'; /** * The PLAYSTATION gamepad 'R1' event code. * @type {'ClusterFrontButtonTopRight'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const R1 = 'ClusterFrontButtonTopRight'; /** * The PLAYSTATION gamepad 'L2' event code. * @type {'ClusterFrontButtonBottomLeft'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const L2 = 'ClusterFrontButtonBottomLeft'; /** * The PLAYSTATION gamepad 'R2' event code. * @type {'ClusterFrontButtonBottomRight'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const R2 = 'ClusterFrontButtonBottomRight'; /** * The PLAYSTATION gamepad 'SELECT' event code. * @type {'ClusterCenterButtonLeft'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const SELECT = 'ClusterCenterButtonLeft'; /** * The PLAYSTATION gamepad 'START' event code. * @type {'ClusterCenterButtonRight'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const START = 'ClusterCenterButtonRight'; /** * The PLAYSTATION gamepad 'L3' event code. * @type {'StickLeftButton'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const L3 = 'StickLeftButton'; /** * The PLAYSTATION gamepad 'R3' event code. * @type {'StickRightButton'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const R3 = 'StickRightButton'; /** * The PLAYSTATION gamepad 'UP' event code. * @type {'ClusterLeftButtonTop'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const UP = 'ClusterLeftButtonTop'; /** * The PLAYSTATION gamepad 'DOWN' event code. * @type {'ClusterLeftButtonBottom'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const DOWN = 'ClusterLeftButtonBottom'; /** * The PLAYSTATION gamepad 'LEFT' event code. * @type {'ClusterLeftButtonLeft'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const LEFT = 'ClusterLeftButtonLeft'; /** * The PLAYSTATION gamepad 'RIGHT' event code. * @type {'ClusterLeftButtonRight'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const RIGHT = 'ClusterLeftButtonRight'; /** * The PLAYSTATION gamepad 'PLAYSTATION' event code. * @type {'ClusterCenterButtonCenter'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const PLAYSTATION = 'ClusterCenterButtonCenter'; /** * The PLAYSTATION gamepad 'LS_LEFT' event code. * @type {'StickLeftLeft'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const LS_LEFT = 'StickLeftLeft'; /** * The PLAYSTATION gamepad 'LS_RIGHT' event code. * @type {'StickLeftRight'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const LS_RIGHT = 'StickLeftRight'; /** * The PLAYSTATION gamepad 'LS_UP' event code. * @type {'StickLeftUp'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const LS_UP = 'StickLeftUp'; /** * The PLAYSTATION gamepad 'LS_DOWN' event code. * @type {'StickLeftDown'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const LS_DOWN = 'StickLeftDown'; /** * The PLAYSTATION gamepad 'RS_LEFT' event code. * @type {'StickRightLeft'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const RS_LEFT = 'StickRightLeft'; /** * The PLAYSTATION gamepad 'RS_RIGHT' event code. * @type {'StickRightRight'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const RS_RIGHT = 'StickRightRight'; /** * The PLAYSTATION gamepad 'RS_UP' event code. * @type {'StickRightUp'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const RS_UP = 'StickRightUp'; /** * The PLAYSTATION gamepad 'RS_DOWN' event code. * @type {'StickRightDown'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const RS_DOWN = 'StickRightDown'; /** * The PLAYSTATION gamepad 'CONNECTED' event code. * @type {'Connected'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const CONNECTED = 'Connected'; /** * The PLAYSTATION gamepad 'DISCONNECTED' event code. * @type {'Disconnected'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const DISCONNECTED = 'Disconnected'; /** * The PLAYSTATION gamepad 'VIBRATE_END' event code. * @type {'VibrateEnd'} * @constant * * @memberof module:EVENT_CODES/GAMEPADS/PLAYSTATION */ const VIBRATE_END = 'VibrateEnd'; /** * The PLAYSTATION gamepad 'VIBRATE_START' event code. * @type {'VibrateStart'} * @constant * * @memberof module:EVENT_CODES/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 };