gdx: add esc to exit
This commit is contained in:
parent
d50a67527e
commit
9a16899824
@ -259,6 +259,9 @@ public abstract class GdxMap implements ApplicationListener {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
|
case Input.Keys.ESCAPE:
|
||||||
|
Gdx.app.exit();
|
||||||
|
break;
|
||||||
|
|
||||||
case Input.Keys.UP:
|
case Input.Keys.UP:
|
||||||
mViewport.moveMap(0, -50);
|
mViewport.moveMap(0, -50);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user