aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-19 05:16:42 +0100
committerJohannes Schickel2012-02-19 05:21:10 +0100
commitffaa8612c3024f2ec97692015553dd846e31d830 (patch)
treed31592ae8ef57dc2f388f49133f20b052989374c /backends
parentfd40d1b1925e689e330ff71fcb95fa9da08f8936 (diff)
downloadscummvm-rg350-ffaa8612c3024f2ec97692015553dd846e31d830.tar.gz
scummvm-rg350-ffaa8612c3024f2ec97692015553dd846e31d830.tar.bz2
scummvm-rg350-ffaa8612c3024f2ec97692015553dd846e31d830.zip
IPHONE: Change F5 (menu) gesture to open up the GMM.
Thanks to tsoliman for this patch.
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/iphone/osys_events.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/backends/platform/iphone/osys_events.cpp b/backends/platform/iphone/osys_events.cpp
index 1ab1db0f27..f6dae2f519 100644
--- a/backends/platform/iphone/osys_events.cpp
+++ b/backends/platform/iphone/osys_events.cpp
@@ -319,12 +319,9 @@ bool OSystem_IPHONE::handleEvent_mouseSecondDragged(Common::Event &event, int x,
if (absX < kMaxDeviation && vecY >= kNeededLength) {
// Swipe down
- event.type = Common::EVENT_KEYDOWN;
- _queuedInputEvent.type = Common::EVENT_KEYUP;
+ event.type = Common::EVENT_MAINMENU;
+ _queuedInputEvent.type = Common::EVENT_INVALID;
- event.kbd.flags = _queuedInputEvent.kbd.flags = 0;
- event.kbd.keycode = _queuedInputEvent.kbd.keycode = Common::KEYCODE_F5;
- event.kbd.ascii = _queuedInputEvent.kbd.ascii = Common::ASCII_F5;
_queuedEventTime = getMillis() + kQueuedInputEventDelay;
return true;
}