summaryrefslogtreecommitdiff
path: root/src/input/keyboarddata.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-22 19:44:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-22 19:44:57 +0300
commitce1b6c9c3c0166853089a247add9c2baa016c5f0 (patch)
treed565a5de14014cd38caee94079905757e095d132 /src/input/keyboarddata.h
parentb792606533096577b91a7b744813f62984d31d09 (diff)
downloadmanaplus-ce1b6c9c3c0166853089a247add9c2baa016c5f0.tar.gz
manaplus-ce1b6c9c3c0166853089a247add9c2baa016c5f0.tar.bz2
manaplus-ce1b6c9c3c0166853089a247add9c2baa016c5f0.tar.xz
manaplus-ce1b6c9c3c0166853089a247add9c2baa016c5f0.zip
by default assign back button to quit in SDL2 on Android.
Diffstat (limited to 'src/input/keyboarddata.h')
-rw-r--r--src/input/keyboarddata.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input/keyboarddata.h b/src/input/keyboarddata.h
index bd5395007..e9703eac7 100644
--- a/src/input/keyboarddata.h
+++ b/src/input/keyboarddata.h
@@ -211,7 +211,11 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
COND_NOMODAL | COND_NOAWAY | COND_NONPCINPUT},
{"keyQuit",
INPUT_KEYBOARD, SDLK_ESCAPE,
+#if defined(USE_SDL2) && defined(ANDROID)
+ INPUT_KEYBOARD, SDLK_AC_BACK,
+#else
INPUT_UNKNOWN, Input::KEY_NO_VALUE,
+#endif
Input::GRP_DEFAULT,
&ActionManager::quit,
Input::KEY_NO_VALUE, 50,
@@ -1857,7 +1861,11 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
COND_DEFAULT},
{"keyGUICancel",
INPUT_KEYBOARD, SDLK_ESCAPE,
+#if defined(USE_SDL2) && defined(ANDROID)
+ INPUT_KEYBOARD, SDLK_AC_BACK,
+#else
INPUT_UNKNOWN, Input::KEY_NO_VALUE,
+#endif
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,