IPHONE: Change F5 (menu) gesture to open up the GMM.

Thanks to tsoliman for this patch.
This commit is contained in:
Johannes Schickel 2012-02-19 05:16:42 +01:00
parent fd40d1b192
commit ffaa8612c3
2 changed files with 5 additions and 5 deletions

3
NEWS
View File

@ -25,6 +25,9 @@ For a more comprehensive changelog of the latest experimental code, see:
- Added support for the Macintosh version of SPY Fox in Hold the Mustard.
- Added a difficulty selection dialog for Loom FM-TOWNS.
iPhone port:
- Changed "F5 (menu)" gesture to open up the global main menu instead.
Windows port:
- Changed default savegames location for Windows NT4/2000/XP/Vista/7.
(The migration batch file can be used to copy savegames from the old

View File

@ -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;
}