forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCameraEventType.js
56 lines (50 loc) · 1.2 KB
/
CameraEventType.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*global define*/
define([
'../Core/freezeObject'
], function(
freezeObject) {
'use strict';
/**
* Enumerates the available input for interacting with the camera.
*
* @exports CameraEventType
*/
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
};
return freezeObject(CameraEventType);
});