diff --git a/src/devkit/FakeControllers.tsx b/src/devkit/FakeControllers.tsx index 00aca17..aca4fbb 100644 --- a/src/devkit/FakeControllers.tsx +++ b/src/devkit/FakeControllers.tsx @@ -72,6 +72,12 @@ export function FakeControllers() { fakeInput.right.gripWorld.makeTranslation(0.25, 1.2, -0.5); force((n) => n + 1); return; + } else if (k === 'l' || k === 'L') { + const s = useModelStore.getState(); + const next = !s.isLocked; + s.setLocked(next); + console.log(`[lock] ${next ? 'ON' : 'OFF'} (keyboard)`); + return; } apply(); };