import { FirstPersonControls } from "./FirstPersonControls.js";
export class PointerLockControls extends FirstPersonControls {
    locked = false;
    constructor(camera, options = {}) {
        super(camera, options);
    }
    lock() {
        this.locked = true;
    }
    unlock() {
        this.locked = false;
    }
    update(snapshot, deltaSeconds) {
        if (!this.locked)
            return;
        super.update(snapshot, deltaSeconds);
    }
}
//# sourceMappingURL=PointerLockControls.js.map