gdx: add esc to exit

This commit is contained in:
Hannes Janetzek
2014-03-27 00:35:51 +01:00
parent d50a67527e
commit 9a16899824
+3
View File
@@ -259,6 +259,9 @@ public abstract class GdxMap implements ApplicationListener {
return true;
switch (keycode) {
case Input.Keys.ESCAPE:
Gdx.app.exit();
break;
case Input.Keys.UP:
mViewport.moveMap(0, -50);