removed esc button to go directly to main menu
This commit is contained in:
@@ -114,10 +114,6 @@ public class MainMenu extends ScreenAdapter implements AdvancedResizeScreen {
|
||||
public boolean keyUp(InputEvent event, int keycode) {
|
||||
if (keycode == Keys.ESCAPE) {
|
||||
stage.unfocusAll();
|
||||
if (cameraPosition.x != 0.5f*Gdx.graphics.getWidth() || cameraPosition.y != 0.5f*Gdx.graphics.getHeight()) {
|
||||
cameraPosition.x = 0.5f*Gdx.graphics.getWidth();
|
||||
cameraPosition.y = 0.5f*Gdx.graphics.getHeight();
|
||||
}
|
||||
keybindPage.unselect();
|
||||
}
|
||||
return super.keyUp(event, keycode);
|
||||
|
Reference in New Issue
Block a user