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:
@@ -162,6 +162,13 @@ class CliGameLoop {
|
||||
return;
|
||||
}
|
||||
|
||||
if (input.matchesFpsToggleShortcut(bytes)) {
|
||||
engine.toggleFpsCounter();
|
||||
_syncRendererFromEngine();
|
||||
unawaited(persistence?.save(engine.rendererSettings));
|
||||
return;
|
||||
}
|
||||
|
||||
input.handleKey(bytes);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user