Controls.js 466 B

1234567891011121314151617181920212223242526272829303132
  1. import { EventDispatcher } from 'three';
  2. class Controls extends EventDispatcher {
  3. constructor( object, domElement ) {
  4. super();
  5. this.object = object;
  6. this.domElement = domElement;
  7. this.enabled = true;
  8. this.state = - 1;
  9. this.keys = {};
  10. this.mouseButtons = { LEFT: null, MIDDLE: null, RIGHT: null };
  11. this.touches = { ONE: null, TWO: null };
  12. }
  13. connect() {}
  14. disconnect() {}
  15. dispose() {}
  16. update( /* delta */ ) {}
  17. }
  18. export { Controls };
粤ICP备19079148号