PointerLockControls.d.ts 481 B

123456789101112131415161718192021222324252627
  1. import {
  2. Camera,
  3. EventDispatcher,
  4. Vector3
  5. } from '../../../src/Three';
  6. export class PointerLockControls extends EventDispatcher {
  7. constructor( camera: Camera, domElement?: HTMLElement );
  8. domElement: HTMLElement;
  9. // API
  10. isLocked: boolean;
  11. connect(): void;
  12. disconnect(): void;
  13. dispose(): void;
  14. getObject(): Camera;
  15. getDirection( v: Vector3 ): Vector3;
  16. moveForward( distance: number ): void;
  17. moveRight( distance: number ): void;
  18. lock(): void;
  19. unlock(): void;
  20. }