Source: Scene/CameraEventType.js

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