babylon.followCameraInputsManager.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. module BABYLON {
  2. /**
  3. * Default Inputs manager for the FollowCamera.
  4. * It groups all the default supported inputs for ease of use.
  5. * @see http://doc.babylonjs.com/how_to/customizing_camera_inputs
  6. */
  7. export class FollowCameraInputsManager extends CameraInputsManager<FollowCamera> {
  8. /**
  9. * Instantiates a new FollowCameraInputsManager.
  10. * @param camera Defines the camera the inputs belong to
  11. */
  12. constructor(camera: FollowCamera) {
  13. super(camera);
  14. }
  15. /**
  16. * Add keyboard input support to the input manager.
  17. * @returns the current input manager
  18. */
  19. public addKeyboard(): FollowCameraInputsManager {
  20. this.add(new FollowCameraKeyboardMoveInput());
  21. return this;
  22. }
  23. /**
  24. * Add mouse wheel input support to the input manager.
  25. * @returns the current input manager
  26. */
  27. public addMouseWheel(): FollowCameraInputsManager {
  28. console.warn("MouseWheel support not yet implemented for FollowCamera.");
  29. return this;
  30. }
  31. /**
  32. * Add pointers input support to the input manager.
  33. * @returns the current input manager
  34. */
  35. public addPointers(): FollowCameraInputsManager {
  36. console.warn("Pointer support not yet implemented for FollowCamera.");
  37. return this;
  38. }
  39. /**
  40. * Add orientation input support to the input manager.
  41. * @returns the current input manager
  42. */
  43. public addVRDeviceOrientation(): FollowCameraInputsManager {
  44. console.warn("DeviceOrientation support not yet implemented for FollowCamera.");
  45. return this;
  46. }
  47. }
  48. }