[Scummvm-cvs-logs] SF.net SVN: scummvm: [27005] scummvm/trunk

knakos at users.sourceforge.net knakos at users.sourceforge.net
Tue May 29 22:07:20 CEST 2007


Revision: 27005
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27005&view=rev
Author:   knakos
Date:     2007-05-29 13:07:19 -0700 (Tue, 29 May 2007)

Log Message:
-----------
added EVENT_PREDICTIVE_DIALOG event to bring up the predictive dialog on demand by the backends

Modified Paths:
--------------
    scummvm/trunk/common/events.h
    scummvm/trunk/engines/agi/agi.cpp

Modified: scummvm/trunk/common/events.h
===================================================================
--- scummvm/trunk/common/events.h	2007-05-29 16:21:09 UTC (rev 27004)
+++ scummvm/trunk/common/events.h	2007-05-29 20:07:19 UTC (rev 27005)
@@ -34,7 +34,7 @@
  * @see Event
  *
  * @todo Merge EVENT_LBUTTONDOWN, EVENT_RBUTTONDOWN and EVENT_WHEELDOWN;
- *       likewiese EVENT_LBUTTONUP, EVENT_RBUTTONUP, EVENT_WHEELUP.
+ *       likewise EVENT_LBUTTONUP, EVENT_RBUTTONUP, EVENT_WHEELUP.
  *       To do that, we just have to add a field to the Event which
  *       indicates which button was pressed.
  */
@@ -53,7 +53,8 @@
 	EVENT_WHEELDOWN = 9,
 
 	EVENT_QUIT = 10,
-	EVENT_SCREEN_CHANGED = 11
+	EVENT_SCREEN_CHANGED = 11,
+	EVENT_PREDICTIVE_DIALOG = 12
 };
 
 /**

Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2007-05-29 16:21:09 UTC (rev 27004)
+++ scummvm/trunk/engines/agi/agi.cpp	2007-05-29 20:07:19 UTC (rev 27005)
@@ -68,6 +68,12 @@
 			_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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list