You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
856 B
JavaScript
48 lines
856 B
JavaScript
/**
|
|
* Enumerates the available input for interacting with the camera.
|
|
*
|
|
* @enum {Number}
|
|
*/
|
|
var CameraEventType = {
|
|
/**
|
|
* A left mouse button press followed by moving the mouse and releasing the button.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
LEFT_DRAG: 0,
|
|
|
|
/**
|
|
* A right mouse button press followed by moving the mouse and releasing the button.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
RIGHT_DRAG: 1,
|
|
|
|
/**
|
|
* A middle mouse button press followed by moving the mouse and releasing the button.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
MIDDLE_DRAG: 2,
|
|
|
|
/**
|
|
* Scrolling the middle mouse button.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
WHEEL: 3,
|
|
|
|
/**
|
|
* A two-finger touch on a touch surface.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
PINCH: 4,
|
|
};
|
|
export default Object.freeze(CameraEventType);
|