diff options
author | Kostas Nakos | 2007-06-09 10:06:05 +0000 |
---|---|---|
committer | Kostas Nakos | 2007-06-09 10:06:05 +0000 |
commit | 80432ef36a514065a190290a7bacc456996cc486 (patch) | |
tree | 8d16b8615886b4857dc4df990168488034fc2113 /backends/platform/wince/CEActionsSmartphone.cpp | |
parent | 3e416bf6013ea3c26ccd979d3fcdc09c08419d86 (diff) | |
download | scummvm-rg350-80432ef36a514065a190290a7bacc456996cc486.tar.gz scummvm-rg350-80432ef36a514065a190290a7bacc456996cc486.tar.bz2 scummvm-rg350-80432ef36a514065a190290a7bacc456996cc486.zip |
add nippon support
svn-id: r27244
Diffstat (limited to 'backends/platform/wince/CEActionsSmartphone.cpp')
-rw-r--r-- | backends/platform/wince/CEActionsSmartphone.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/backends/platform/wince/CEActionsSmartphone.cpp b/backends/platform/wince/CEActionsSmartphone.cpp index 309aefd95d..e65af8fc53 100644 --- a/backends/platform/wince/CEActionsSmartphone.cpp +++ b/backends/platform/wince/CEActionsSmartphone.cpp @@ -117,11 +117,12 @@ void CEActionsSmartphone::initInstanceGame() { bool is_cine = (gameid == "cine"); bool is_touche = (gameid == "touche"); bool is_agi = (gameid == "agi"); + bool is_parallaction = (gameid == "parallaction"); GUI_Actions::initInstanceGame(); // See if a right click mapping could be needed - if (is_sword1 || is_sword2 || is_sky || is_queen || is_comi || is_gob || is_samnmax || is_cine || is_touche) + if (is_sword1 || is_sword2 || is_sky || is_queen || is_comi || is_gob || is_samnmax || is_cine || is_touche || is_parallaction) _right_click_needed = true; // Initialize keys for different actions @@ -140,6 +141,9 @@ void CEActionsSmartphone::initInstanceGame() { } else if (is_agi) { _action_enabled[SMARTPHONE_ACTION_SAVE] = true; _key_action[SMARTPHONE_ACTION_SAVE].setAscii(SDLK_ESCAPE); + } else if (is_parallaction) { + _action_enabled[SMARTPHONE_ACTION_SAVE] = true; + _key_action[SMARTPHONE_ACTION_SAVE].setAscii(SDLK_s); } else { _action_enabled[SMARTPHONE_ACTION_SAVE] = true; _key_action[SMARTPHONE_ACTION_SAVE].setAscii(319); // F5 key @@ -194,6 +198,15 @@ bool CEActionsSmartphone::perform(GUI::ActionType action, bool pushed) { case SMARTPHONE_ACTION_SAVE: case SMARTPHONE_ACTION_SKIP: case SMARTPHONE_ACTION_MULTI: + if (action == SMARTPHONE_ACTION_SAVE && ConfMan.get("gameid") == "parallaction") { + // FIXME: This is a temporary solution. The engine should handle its own menus. + // Note that the user can accomplish this via the virtual keyboard as well, this is just for convenience + GUI::MessageDialog alert("Do you want to load or save the game?", "Load", "Save"); + if (alert.runModal() == GUI::kMessageOK) + _key_action[action].setAscii(SDLK_l); + else + _key_action[action].setAscii(SDLK_s); + } EventsBuffer::simulateKey(&_key_action[action], true); return true; case SMARTPHONE_ACTION_RIGHTCLICK: |