diff options
author | Lars Persson | 2009-03-06 21:41:13 +0000 |
---|---|---|
committer | Lars Persson | 2009-03-06 21:41:13 +0000 |
commit | 3753d0b5f8f4fde1c7d5be10deb980bbc1bcda65 (patch) | |
tree | 9ca4dc74759d97f2f27c2578bfbff906a7260aef | |
parent | b98bd77d3fa0db5c8994f830fa69c0ecac3a0b2d (diff) | |
download | scummvm-rg350-3753d0b5f8f4fde1c7d5be10deb980bbc1bcda65.tar.gz scummvm-rg350-3753d0b5f8f4fde1c7d5be10deb980bbc1bcda65.tar.bz2 scummvm-rg350-3753d0b5f8f4fde1c7d5be10deb980bbc1bcda65.zip |
Added save action for Cruise
svn-id: r39164
-rw-r--r-- | backends/platform/symbian/src/SymbianActions.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/backends/platform/symbian/src/SymbianActions.cpp b/backends/platform/symbian/src/SymbianActions.cpp index 8b7b22895a..9bbbec399d 100644 --- a/backends/platform/symbian/src/SymbianActions.cpp +++ b/backends/platform/symbian/src/SymbianActions.cpp @@ -61,7 +61,7 @@ const Common::String actionNames[] = { #ifdef UIQ static const int ACTIONS_DEFAULT[ACTION_LAST] = { SDLK_UP, SDLK_DOWN, SDLK_LEFT, SDLK_RIGHT, SDLK_F1, SDLK_F2, SDLK_F5, SDLK_PAGEDOWN, '9', 0, 0, SDLK_PAGEUP, 0, 0, 0, 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, '1', '2', '3'}; +const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, 0, 0, '*', '#', '9', 0, 0, 0, 0, 0, 0, 0, '0', 0, 0}; #elif defined (S90) const int ACTIONS_DEFAULT[ACTION_LAST] = { SDLK_UP, SDLK_DOWN, SDLK_LEFT, SDLK_RIGHT, 0, 0, SDLK_MENU, SDLK_ESCAPE, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0 ,0}; #else @@ -156,12 +156,18 @@ void SymbianActions::initInstanceGame() { bool is_drascula = (strncmp(gameid.c_str(), "drascula",8) == 0); bool is_tucker = (gameid == "tucker"); bool is_groovie = (gameid == "groovie"); + bool is_cruise = (gameid == "cruise"); Actions::initInstanceGame(); // Initialize keys for different actions // Pause - _key_action[ACTION_PAUSE].setKey(' '); + if(is_cruise) { + _key_action[ACTION_PAUSE].setKey('P'); + } + else { + _key_action[ACTION_PAUSE].setKey(' '); + } _action_enabled[ACTION_PAUSE] = true; @@ -175,7 +181,7 @@ void SymbianActions::initInstanceGame() { _key_action[ACTION_SAVE].setKey(Common::ASCII_F1, Common::KEYCODE_F1); // F1 key for FOTAQ } else if (is_sky) { _key_action[ACTION_SAVE].setKey(Common::ASCII_F5, Common::KEYCODE_F5); - } else if (is_cine || is_drascula) { + } else if (is_cine || is_drascula || is_cruise) { _key_action[ACTION_SAVE].setKey(Common::ASCII_F10, Common::KEYCODE_F10); // F10 } else if (is_agi) { _key_action[ACTION_SAVE].setKey(Common::ASCII_ESCAPE, Common::KEYCODE_ESCAPE); |