aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/symbian
diff options
context:
space:
mode:
authorLars Persson2007-06-08 18:09:24 +0000
committerLars Persson2007-06-08 18:09:24 +0000
commita3e8f765a6be500357b99d693b21266dbc428137 (patch)
treeba651362f41b2be193a260fb5058c637ef9c0fb8 /backends/platform/symbian
parent1255681d0d4b52cd5a5d3b62666f6f3e2ab4e1de (diff)
downloadscummvm-rg350-a3e8f765a6be500357b99d693b21266dbc428137.tar.gz
scummvm-rg350-a3e8f765a6be500357b99d693b21266dbc428137.tar.bz2
scummvm-rg350-a3e8f765a6be500357b99d693b21266dbc428137.zip
Updated Symbian OS Prediction handling
Updated AGI to only enable predictive input after dictionary was found. svn-id: r27206
Diffstat (limited to 'backends/platform/symbian')
-rw-r--r--backends/platform/symbian/src/SymbianOS.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp
index 80f9491d2a..d5c869ac91 100644
--- a/backends/platform/symbian/src/SymbianOS.cpp
+++ b/backends/platform/symbian/src/SymbianOS.cpp
@@ -88,8 +88,10 @@ void OSystem_SDL_Symbian::setFeatureState(Feature f, bool enable) {
else {
}
-
- return;
+ break;
+ case kFeatureDisableKeyFiltering:
+ GUI::Actions::Instance()->beginMapping(enable);
+ break;;
default:
OSystem_SDL::setFeatureState(f, enable);
}
@@ -345,16 +347,21 @@ bool OSystem_SDL_Symbian::remapKey(SDL_Event &ev, Common::Event &event) {
}
return true;
-
+ case GUI::ACTION_MULTI: {
+ GUI::Key &key = GUI::Actions::Instance()->getKeyAction(loop);
+ // if key code is pause, then change event to interactive or just fall through
+ if(key.keycode() == SDLK_PAUSE) {
+ event.type = Common::EVENT_PREDICTIVE_DIALOG;
+ return true;
+ }
+ }
case GUI::ACTION_SAVE:
case GUI::ACTION_SKIP:
- case GUI::ACTION_MULTI:
case GUI::ACTION_SKIP_TEXT:
case GUI::ACTION_PAUSE:
case GUI::ACTION_SWAPCHAR:
case GUI::ACTION_FASTMODE:
- case GUI::ACTION_DEBUGGER:
- {
+ 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();