2018-05-29 23:32:45 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2023-01-02 17:36:27 +00:00
|
|
|
* @copyright 2013-2023 Photon Storm Ltd.
|
2019-05-10 15:15:04 +00:00
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
2018-05-29 23:32:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
var INPUT_CONST = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The mouse pointer is being held down.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-05-29 23:32:45 +00:00
|
|
|
* @name Phaser.Input.MOUSE_DOWN
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-05-29 23:32:45 +00:00
|
|
|
* @since 3.10.0
|
|
|
|
*/
|
|
|
|
MOUSE_DOWN: 0,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The mouse pointer is being moved.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-05-29 23:32:45 +00:00
|
|
|
* @name Phaser.Input.MOUSE_MOVE
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-05-29 23:32:45 +00:00
|
|
|
* @since 3.10.0
|
|
|
|
*/
|
|
|
|
MOUSE_MOVE: 1,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The mouse pointer is released.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-05-29 23:32:45 +00:00
|
|
|
* @name Phaser.Input.MOUSE_UP
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-05-29 23:32:45 +00:00
|
|
|
* @since 3.10.0
|
|
|
|
*/
|
|
|
|
MOUSE_UP: 2,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A touch pointer has been started.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-05-29 23:32:45 +00:00
|
|
|
* @name Phaser.Input.TOUCH_START
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-05-29 23:32:45 +00:00
|
|
|
* @since 3.10.0
|
|
|
|
*/
|
|
|
|
TOUCH_START: 3,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A touch pointer has been started.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-05-29 23:32:45 +00:00
|
|
|
* @name Phaser.Input.TOUCH_MOVE
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-05-29 23:32:45 +00:00
|
|
|
* @since 3.10.0
|
|
|
|
*/
|
|
|
|
TOUCH_MOVE: 4,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A touch pointer has been started.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-05-29 23:32:45 +00:00
|
|
|
* @name Phaser.Input.TOUCH_END
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-05-29 23:32:45 +00:00
|
|
|
* @since 3.10.0
|
|
|
|
*/
|
|
|
|
TOUCH_END: 5,
|
|
|
|
|
2019-06-05 14:30:42 +00:00
|
|
|
/**
|
|
|
|
* The pointer lock has changed.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2019-06-05 14:30:42 +00:00
|
|
|
* @name Phaser.Input.POINTER_LOCK_CHANGE
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2019-06-05 14:30:42 +00:00
|
|
|
* @since 3.10.0
|
|
|
|
*/
|
|
|
|
POINTER_LOCK_CHANGE: 6,
|
|
|
|
|
2018-10-16 10:43:40 +00:00
|
|
|
/**
|
|
|
|
* A touch pointer has been been cancelled by the browser.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2018-10-16 10:43:40 +00:00
|
|
|
* @name Phaser.Input.TOUCH_CANCEL
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-10-16 10:43:40 +00:00
|
|
|
* @since 3.15.0
|
|
|
|
*/
|
|
|
|
TOUCH_CANCEL: 7,
|
|
|
|
|
2018-05-29 23:32:45 +00:00
|
|
|
/**
|
2019-06-05 14:30:42 +00:00
|
|
|
* The mouse wheel changes.
|
2022-02-28 14:29:51 +00:00
|
|
|
*
|
2019-06-05 14:30:42 +00:00
|
|
|
* @name Phaser.Input.MOUSE_WHEEL
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2019-06-05 14:30:42 +00:00
|
|
|
* @since 3.18.0
|
2018-05-29 23:32:45 +00:00
|
|
|
*/
|
2019-06-05 14:30:42 +00:00
|
|
|
MOUSE_WHEEL: 8
|
2018-05-29 23:32:45 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = INPUT_CONST;
|