From 5df28554acb998b7df686122bb26cb897e40e075 Mon Sep 17 00:00:00 2001 From: Kostas Nakos Date: Sun, 3 Jun 2007 18:44:03 +0000 Subject: Adding the new kFeatureDisableKeyFiltering OSystem feature. This feature is used by agi's prediction dialog and is a hint to the backend to temporarily switch off any keyboard mapping, used in devices with limited keyboard input. Also, supply some comments to the newly added event & feature. svn-id: r27069 --- engines/agi/predictive.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/agi') diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp index e3f38463ac..230c15de58 100644 --- a/engines/agi/predictive.cpp +++ b/engines/agi/predictive.cpp @@ -120,6 +120,7 @@ bool AgiEngine::predictiveDialog(void) { AgiBlock tmpwindow; _predictiveDialogRunning = true; + _system->setFeatureState(OSystem::kFeatureDisableKeyFiltering, true); // FIXME: Move this to a more appropriate place. initAsciiToNumTable(); @@ -405,6 +406,7 @@ processkey: _gfx->doUpdate(); } + _system->setFeatureState(OSystem::kFeatureDisableKeyFiltering, false); _predictiveDialogRunning = false; return rc; -- cgit v1.2.3