ANDROID: Add an on-screen menu button

This commit is contained in:
Cameron Cawley 2021-06-18 00:09:30 +01:00 committed by Eugene Sandulenko
parent 3ddce1cf3a
commit c1702a0953
11 changed files with 78 additions and 13 deletions

View file

@ -77,7 +77,8 @@ enum {
JE_BMB_UP = 19,
JE_FMB_DOWN = 20,
JE_FMB_UP = 21,
JE_QUIT = 0x1000
JE_QUIT = 0x1000,
JE_MENU = 0x1001
};
// meta modifier
@ -1221,6 +1222,13 @@ void OSystem_Android::pushEvent(int type, int arg1, int arg2, int arg3,
return;
case JE_MENU:
e.type = Common::EVENT_MAINMENU;
pushEvent(e);
return;
default:
LOGE("unknown jevent type: %d", type);