removed esc button to go directly to main menu
This commit is contained in:
parent
3c70a4d3f8
commit
3e40aab3a1
@ -114,10 +114,6 @@ public class MainMenu extends ScreenAdapter implements AdvancedResizeScreen {
|
|||||||
public boolean keyUp(InputEvent event, int keycode) {
|
public boolean keyUp(InputEvent event, int keycode) {
|
||||||
if (keycode == Keys.ESCAPE) {
|
if (keycode == Keys.ESCAPE) {
|
||||||
stage.unfocusAll();
|
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();
|
keybindPage.unselect();
|
||||||
}
|
}
|
||||||
return super.keyUp(event, keycode);
|
return super.keyUp(event, keycode);
|
||||||
|
Loading…
Reference in New Issue
Block a user