gdx: add esc to exit

This commit is contained in:
Hannes Janetzek 2014-03-19 14:05:40 +01:00
parent d50a67527e
commit 9a16899824

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