Add ESC key support to exit application in InputService
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user