Files
caravels-community-simulation/web-app/node_modules/three/src/extras/Controls.js
rafaeldpsilva adbbf6bf50 first commit
2025-12-10 12:32:12 +00:00

33 lines
494 B
JavaScript

import { EventDispatcher } from '../core/EventDispatcher.js';
class Controls extends EventDispatcher {
constructor( object, domElement = null ) {
super();
this.object = object;
this.domElement = domElement;
this.enabled = true;
this.state = - 1;
this.keys = {};
this.mouseButtons = { LEFT: null, MIDDLE: null, RIGHT: null };
this.touches = { ONE: null, TWO: null };
}
connect() {}
disconnect() {}
dispose() {}
update( /* delta */ ) {}
}
export { Controls };