Add ESC key support to exit application in InputService

This commit is contained in:
2025-12-16 12:54:53 +01:00
parent 3283e728c4
commit 7734f8ba30

View File

@@ -23,6 +23,8 @@ public class InputService implements OnStartup {
log.info("Key pressed: {}", keycode);
if (keycode == Input.Keys.ENTER && isAltDown()) {
displayService.toggleFullscreen();
} else if (keycode == Input.Keys.ESCAPE) {
Gdx.app.exit();
}
return false;
}