CameraEventType.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import freezeObject from '../Core/freezeObject.js';
  2. /**
  3. * Enumerates the available input for interacting with the camera.
  4. *
  5. * @exports CameraEventType
  6. */
  7. var CameraEventType = {
  8. /**
  9. * A left mouse button press followed by moving the mouse and releasing the button.
  10. *
  11. * @type {Number}
  12. * @constant
  13. */
  14. LEFT_DRAG : 0,
  15. /**
  16. * A right mouse button press followed by moving the mouse and releasing the button.
  17. *
  18. * @type {Number}
  19. * @constant
  20. */
  21. RIGHT_DRAG : 1,
  22. /**
  23. * A middle mouse button press followed by moving the mouse and releasing the button.
  24. *
  25. * @type {Number}
  26. * @constant
  27. */
  28. MIDDLE_DRAG : 2,
  29. /**
  30. * Scrolling the middle mouse button.
  31. *
  32. * @type {Number}
  33. * @constant
  34. */
  35. WHEEL : 3,
  36. /**
  37. * A two-finger touch on a touch surface.
  38. *
  39. * @type {Number}
  40. * @constant
  41. */
  42. PINCH : 4
  43. };
  44. export default freezeObject(CameraEventType);