feat: Add FPS toggle shortcut and corresponding input handling in CLI

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-23 17:12:27 +01:00
parent b88475882b
commit ea6825341e
3 changed files with 38 additions and 0 deletions
+7
View File
@@ -162,6 +162,13 @@ class CliGameLoop {
return;
}
if (input.matchesFpsToggleShortcut(bytes)) {
engine.toggleFpsCounter();
_syncRendererFromEngine();
unawaited(persistence?.save(engine.rendererSettings));
return;
}
input.handleKey(bytes);
}