treat Android 'menu' button as 'ok' button in requester dialogs
authorHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 12:12:54 +0000 (14:12 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 12:12:54 +0000 (14:12 +0200)
ChangeLog
src/tools.c

index 515f53bba9e79ff170f033f113ea969f54111956..5530b2828446b9a23b7a0e09b502c8f677df30df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-08-30
+       * added Android "menu" button to be treated as "yes" requester button
+         (while the Android "back" button was already treated as "no" button)
+
 2014-08-28
        * added command line options "--version" / "-V" to show program version
          (also shows SDL library versions when prefixed with "--debug" option)
index 2c3fb9cde5e622989b23541e2df7b083fb90839d..c812e3021588e52138ca93ff71b29d56dfc07fb8 100644 (file)
@@ -4600,6 +4600,9 @@ static int RequestHandleEvents(unsigned int req_state)
              break;
 
            case KSYM_Return:
+#if defined(TARGET_SDL2)
+           case KSYM_Menu:
+#endif
              result = 1;
              break;