aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorKostas Nakos2007-05-29 20:07:19 +0000
committerKostas Nakos2007-05-29 20:07:19 +0000
commitf66fb127186b8b944a8426954e4f08f37ae65243 (patch)
tree870d8498ac9f808b6af03c4c48420546862715bc /engines/agi
parentc739b43bc738269125d9ed2059b6d3931ae7dced (diff)
downloadscummvm-rg350-f66fb127186b8b944a8426954e4f08f37ae65243.tar.gz
scummvm-rg350-f66fb127186b8b944a8426954e4f08f37ae65243.tar.bz2
scummvm-rg350-f66fb127186b8b944a8426954e4f08f37ae65243.zip
added EVENT_PREDICTIVE_DIALOG event to bring up the predictive dialog on demand by the backends
svn-id: r27005
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/agi.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index 3a0a433e1d..0ca282d3f2 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -68,6 +68,12 @@ void AgiEngine::processEvents() {
_gfx->deinitMachine();
_system->quit();
break;
+ case Common::EVENT_PREDICTIVE_DIALOG:
+ if (predictiveDialog()) {
+ strcpy((char *)_game.inputBuffer, _predictiveResult);
+ handleKeys(KEY_ENTER);
+ }
+ break;
case Common::EVENT_LBUTTONDOWN:
key = BUTTON_LEFT;
g_mouse.button = 1;