diff options
author | Lars Persson | 2007-11-24 12:57:08 +0000 |
---|---|---|
committer | Lars Persson | 2007-11-24 12:57:08 +0000 |
commit | 54aea9bd7460838acb8c2c2bbc26e5fbd16a42d1 (patch) | |
tree | 4f8345a2b4566f568412214e92b9ec804b84de43 /backends/platform/symbian | |
parent | c37df6a7b3f1be5cc21d072956e735aedf675369 (diff) | |
download | scummvm-rg350-54aea9bd7460838acb8c2c2bbc26e5fbd16a42d1.tar.gz scummvm-rg350-54aea9bd7460838acb8c2c2bbc26e5fbd16a42d1.tar.bz2 scummvm-rg350-54aea9bd7460838acb8c2c2bbc26e5fbd16a42d1.zip |
Fix for keymappings not working properly for S60
svn-id: r29627
Diffstat (limited to 'backends/platform/symbian')
-rw-r--r-- | backends/platform/symbian/src/SymbianActions.cpp | 22 | ||||
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.cpp | 4 |
2 files changed, 13 insertions, 13 deletions
diff --git a/backends/platform/symbian/src/SymbianActions.cpp b/backends/platform/symbian/src/SymbianActions.cpp index eed706abb5..008bf3ccb5 100644 --- a/backends/platform/symbian/src/SymbianActions.cpp +++ b/backends/platform/symbian/src/SymbianActions.cpp @@ -156,17 +156,17 @@ void SymbianActions::initInstanceGame() { _action_enabled[ACTION_SAVE] = true; if (is_queen) { - _key_action[ACTION_SAVE].setKey(Common::ASCII_F5, SDLK_F5); // F1 key for FOTAQ + _key_action[ACTION_SAVE].setKey(Common::ASCII_F5, Common::KEYCODE_F5); // F1 key for FOTAQ } else if (is_sky) { - _key_action[ACTION_SAVE].setKey(Common::ASCII_F5, SDLK_F5); + _key_action[ACTION_SAVE].setKey(Common::ASCII_F5, Common::KEYCODE_F5); } else if (is_cine) { - _key_action[ACTION_SAVE].setKey(Common::ASCII_F10, SDLK_F10); // F10 + _key_action[ACTION_SAVE].setKey(Common::ASCII_F10, Common::KEYCODE_F10); // F10 } else if (is_agi) { - _key_action[ACTION_SAVE].setKey(Common::ASCII_ESCAPE, SDLK_ESCAPE); + _key_action[ACTION_SAVE].setKey(Common::ASCII_ESCAPE, Common::KEYCODE_ESCAPE); } else if (is_parallaction) { - _key_action[ACTION_SAVE].setKey('s', SDLK_s); + _key_action[ACTION_SAVE].setKey('s', Common::KEYCODE_s); } else { - _key_action[ACTION_SAVE].setKey(Common::ASCII_F5, SDLK_F5); // F5 key + _key_action[ACTION_SAVE].setKey(Common::ASCII_F5, Common::KEYCODE_F5); // F5 key } } // Quit @@ -176,14 +176,14 @@ void SymbianActions::initInstanceGame() { 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 + _key_action[ACTION_SKIP_TEXT].setKey(Common::KEYCODE_ESCAPE, Common::KEYCODE_ESCAPE); // Escape key else { _key_action[ACTION_SKIP_TEXT].setKey(SDLK_PERIOD); } // Enable fast mode _action_enabled[ACTION_FASTMODE] = true; - _key_action[ACTION_FASTMODE].setKey('f', SDLK_f, KMOD_CTRL); + _key_action[ACTION_FASTMODE].setKey('f', Common::KEYCODE_f, KMOD_CTRL); // Swap character _action_enabled[ACTION_SWAPCHAR] = true; @@ -197,15 +197,15 @@ void SymbianActions::initInstanceGame() { if (is_agi) _key_action[ACTION_MULTI].setKey(SDLK_PAUSE); // agi: show predictive dialog else if (is_gob) - _key_action[ACTION_MULTI].setKey(Common::ASCII_F1, SDLK_F1); // bargon : F1 to start + _key_action[ACTION_MULTI].setKey(Common::ASCII_F1, Common::KEYCODE_F1); // bargon : F1 to start else if (gameid == "atlantis") - _key_action[ACTION_MULTI].setKey(0, SDLK_KP0); // fate of atlantis : Ins to sucker-punch + _key_action[ACTION_MULTI].setKey('0', Common::KEYCODE_KP0); // fate of atlantis : Ins to sucker-punch else _key_action[ACTION_MULTI].setKey('V', SDLK_v, KMOD_SHIFT); // FT cheat : shift-V // Enable debugger _action_enabled[ACTION_DEBUGGER] = true; - _key_action[ACTION_DEBUGGER].setKey('d', SDLK_d, KMOD_CTRL); + _key_action[ACTION_DEBUGGER].setKey('d', Common::KEYCODE_d, KMOD_CTRL); diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index 3337ae6410..252c11308b 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -366,8 +366,8 @@ bool OSystem_SDL_Symbian::remapKey(SDL_Event &ev, Common::Event &event) { case GUI::ACTION_FASTMODE: case GUI::ACTION_DEBUGGER: { GUI::Key &key = GUI::Actions::Instance()->getKeyAction(loop); - ev.key.keysym.sym = (SDLKey) key.ascii(); - ev.key.keysym.scancode= key.keycode(); + ev.key.keysym.sym = (SDLKey) key.keycode(); + ev.key.keysym.scancode = 0; ev.key.keysym.mod = (SDLMod) key.flags(); // Translate from SDL keymod event to Scummvm Key Mod Common::Event. |