From: Holger Schemel Date: Sat, 30 Aug 2014 12:12:54 +0000 (+0200) Subject: treat Android 'menu' button as 'ok' button in requester dialogs X-Git-Tag: 4.0.0.0-rc1~357 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=abc2e7992e6ad6cd662133fc3807880916fcdf34 treat Android 'menu' button as 'ok' button in requester dialogs --- diff --git a/ChangeLog b/ChangeLog index 515f53bb..5530b282 100644 --- 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) diff --git a/src/tools.c b/src/tools.c index 2c3fb9cd..c812e302 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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;