diff options
author | Lars Persson | 2007-09-28 20:54:58 +0000 |
---|---|---|
committer | Lars Persson | 2007-09-28 20:54:58 +0000 |
commit | 2ca3d105f398cfcabbb148830a7e6ed666ae42eb (patch) | |
tree | f56c86844d3f31f62562ba04f6af0ef97d5bdd97 /backends/platform/symbian | |
parent | 7b3fe1d12f25dc6bd7503980618afd523f94a189 (diff) | |
download | scummvm-rg350-2ca3d105f398cfcabbb148830a7e6ed666ae42eb.tar.gz scummvm-rg350-2ca3d105f398cfcabbb148830a7e6ed666ae42eb.tar.bz2 scummvm-rg350-2ca3d105f398cfcabbb148830a7e6ed666ae42eb.zip |
Updated actions (compared with PocketPC)
svn-id: r29121
Diffstat (limited to 'backends/platform/symbian')
-rw-r--r-- | backends/platform/symbian/src/SymbianActions.cpp | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/backends/platform/symbian/src/SymbianActions.cpp b/backends/platform/symbian/src/SymbianActions.cpp index 23b554c532..4d554db26c 100644 --- a/backends/platform/symbian/src/SymbianActions.cpp +++ b/backends/platform/symbian/src/SymbianActions.cpp @@ -56,7 +56,7 @@ const Common::String actionNames[] = { }; #ifdef UIQ -static const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, SDLK_F1, SDLK_F2, SDLK_F5, SDLK_PAGEDOWN, 0, 0, 0, SDLK_PAGEUP, 0, 0, 0, 0}; +static const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, SDLK_F1, SDLK_F2, SDLK_F5, SDLK_PAGEDOWN, '9', 0, 0, SDLK_PAGEUP, 0, 0, 0, 0}; #elif defined (S60) const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, 0, 0, '*', '#', '9', 0, 0, 0, 0, 0, 0, 0}; #elif defined (S90) @@ -127,6 +127,8 @@ void SymbianActions::initInstanceMain(OSystem *mainSystem) { void SymbianActions::initInstanceGame() { Common::String gameid(ConfMan.get("gameid")); bool is_simon = (strncmp(gameid.c_str(), "simon", 5) == 0); + bool is_sword1 = (gameid == "sword1"); + bool is_sword2 = (strcmp(gameid.c_str(), "sword2") == 0); bool is_sky = (strncmp(gameid.c_str(), "sky", 3) == 0); bool is_saga = (gameid == "saga"); bool is_comi = (strncmp(gameid.c_str(), "comi", 4) == 0); @@ -142,8 +144,13 @@ void SymbianActions::initInstanceGame() { Actions::initInstanceGame(); // Initialize keys for different actions + // Pause + _key_action[ACTION_PAUSE].setKey(' '); + _action_enabled[ACTION_PAUSE] = true; + + // Save - if (is_simon || is_gob || is_kyra || is_touche) + if (is_simon || is_sword2 || is_gob || is_kyra || is_touche) _action_enabled[ACTION_SAVE] = false; else { _action_enabled[ACTION_SAVE] = true; @@ -162,6 +169,17 @@ void SymbianActions::initInstanceGame() { _key_action[ACTION_SAVE].setKey(Common::ASCII_F5, SDLK_F5); // F5 key } } + // Quit + _action_enabled[ACTION_QUIT] = true; + + // Skip text + if (!is_cine && !is_parallaction) + _action_enabled[ACTION_SKIP_TEXT] = true; + if (is_simon || is_sky || is_sword2 || is_queen || is_sword1 || is_gob || is_saga || is_kyra || is_touche) + _key_action[ACTION_SKIP_TEXT].setKey(Common::KEYCODE_ESCAPE, SDLK_ESCAPE); // Escape key + else { + _key_action[ACTION_SKIP_TEXT].setKey(SDLK_PERIOD); + } // Enable fast mode _action_enabled[ACTION_FASTMODE] = true; @@ -189,22 +207,8 @@ void SymbianActions::initInstanceGame() { _action_enabled[ACTION_DEBUGGER] = true; _key_action[ACTION_DEBUGGER].setKey('d', SDLK_d, KMOD_CTRL); - // Skip text - if (!is_cine) - _action_enabled[ACTION_SKIP_TEXT] = true; - if (is_queen) { - _key_action[ACTION_SKIP_TEXT].setKey(SDLK_SPACE); - } else { - _key_action[ACTION_SKIP_TEXT].setKey(SDLK_PERIOD); - } - // Pause - _key_action[ACTION_PAUSE].setKey(' '); - _action_enabled[ACTION_PAUSE] = true; - - // Quit - _action_enabled[ACTION_QUIT] = true; } |