phaser/src/input/const.js

84 lines
1.6 KiB
JavaScript
Raw Normal View History

/**
* @author Richard Davey <rich@photonstorm.com>
2019-01-15 16:20:22 +00:00
* @copyright 2019 Photon Storm Ltd.
2019-05-10 15:15:04 +00:00
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var INPUT_CONST = {
/**
* The mouse pointer is being held down.
*
* @name Phaser.Input.MOUSE_DOWN
* @type {integer}
* @since 3.10.0
*/
MOUSE_DOWN: 0,
/**
* The mouse pointer is being moved.
*
* @name Phaser.Input.MOUSE_MOVE
* @type {integer}
* @since 3.10.0
*/
MOUSE_MOVE: 1,
/**
* The mouse pointer is released.
*
* @name Phaser.Input.MOUSE_UP
* @type {integer}
* @since 3.10.0
*/
MOUSE_UP: 2,
/**
* A touch pointer has been started.
*
* @name Phaser.Input.TOUCH_START
* @type {integer}
* @since 3.10.0
*/
TOUCH_START: 3,
/**
* A touch pointer has been started.
*
* @name Phaser.Input.TOUCH_MOVE
* @type {integer}
* @since 3.10.0
*/
TOUCH_MOVE: 4,
/**
* A touch pointer has been started.
*
* @name Phaser.Input.TOUCH_END
* @type {integer}
* @since 3.10.0
*/
TOUCH_END: 5,
2018-10-16 10:43:40 +00:00
/**
* A touch pointer has been been cancelled by the browser.
*
* @name Phaser.Input.TOUCH_CANCEL
* @type {integer}
* @since 3.15.0
*/
TOUCH_CANCEL: 7,
/**
* The pointer lock has changed.
*
* @name Phaser.Input.POINTER_LOCK_CHANGE
* @type {integer}
* @since 3.10.0
*/
POINTER_LOCK_CHANGE: 6
};
module.exports = INPUT_CONST;