[Scummvm-cvs-logs] SF.net SVN: scummvm: [22711] scummvm/trunk/engines/agi/agi.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun May 28 04:53:01 CEST 2006


Revision: 22711
Author:   eriktorbjorn
Date:     2006-05-28 04:52:24 -0700 (Sun, 28 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22711&view=rev

Log Message:
-----------
Apparently some games use the F10 key, which makes it a poor choice for opening
the debug console. Ctrl-D may be just as bad. Does anyone know for sure?

Modified Paths:
--------------
    scummvm/trunk/engines/agi/agi.cpp
Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2006-05-28 11:48:14 UTC (rev 22710)
+++ scummvm/trunk/engines/agi/agi.cpp	2006-05-28 11:52:24 UTC (rev 22711)
@@ -116,6 +116,12 @@
 		case OSystem::EVENT_KEYDOWN:
 			key_control = 0;
 			key_alt = 0;
+
+			if (event.kbd.flags == OSystem::KBD_CTRL && event.kbd.keycode == 'd') {
+				_console->attach();
+				break;
+			}
+
 			if (event.kbd.flags == OSystem::KBD_CTRL) {
 				key_control = 1;
 				key = 0;
@@ -202,7 +208,7 @@
 				key = 0x4300;
 				break;
 			case 291:
-				_console->attach();
+				key = 0x4400;
 				break;
 			case 292:
 				key = KEY_STATUSLN;


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