diff options
author | Marcus Comstedt | 2013-08-08 15:16:06 +0200 |
---|---|---|
committer | Marcus Comstedt | 2013-08-08 15:16:06 +0200 |
commit | bb39cbcba4a3ca8d16b1589e2d07a4325076b01b (patch) | |
tree | f20ae1cd2573f77fb5f9c3a73a478271b626c30c /backends/platform/android/events.cpp | |
parent | a50ede203b0424d800d2a1d4460121f9f1de8e7a (diff) | |
download | scummvm-rg350-bb39cbcba4a3ca8d16b1589e2d07a4325076b01b.tar.gz scummvm-rg350-bb39cbcba4a3ca8d16b1589e2d07a4325076b01b.tar.bz2 scummvm-rg350-bb39cbcba4a3ca8d16b1589e2d07a4325076b01b.zip |
ANDROID: Enter main menu on middle mouse press
Diffstat (limited to 'backends/platform/android/events.cpp')
-rw-r--r-- | backends/platform/android/events.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/backends/platform/android/events.cpp b/backends/platform/android/events.cpp index 4d7ef9caf2..5c42db9347 100644 --- a/backends/platform/android/events.cpp +++ b/backends/platform/android/events.cpp @@ -66,6 +66,8 @@ enum { JE_MOUSE_MOVE = 13, JE_GAMEPAD = 14, JE_JOYSTICK = 15, + JE_MMB_DOWN = 16, + JE_MMB_UP = 17, JE_QUIT = 0x1000 }; @@ -922,6 +924,20 @@ void OSystem_Android::pushEvent(int type, int arg1, int arg2, int arg3, return; + case JE_MMB_DOWN: + e.type = Common::EVENT_MAINMENU; + + lockMutex(_event_queue_lock); + _event_queue.push(e); + unlockMutex(_event_queue_lock); + + return; + + case JE_MMB_UP: + // No action + + return; + case JE_QUIT: e.type = Common::EVENT_QUIT; |