import { createDefaultControlState } from "./ControlState.js";
export class PointerLockControls {
    state = createDefaultControlState();
    locked = false;
    lock() { this.locked = true; }
    unlock() { this.locked = false; }
    look(deltaX, deltaY) {
        if (!this.locked)
            return;
        this.state.rotation.y += deltaX;
        this.state.rotation.x += deltaY;
    }
}
//# sourceMappingURL=PointerLockControls.js.map