removed esc button to go directly to main menu

This commit is contained in:
Harrison Deng 2018-01-17 12:46:15 -06:00
parent 3c70a4d3f8
commit 3e40aab3a1

View File

@ -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);