[Scummvm-cvs-logs] CVS: scummvm/sky sky.cpp,1.149,1.150

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Wed Sep 15 08:37:04 CEST 2004


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28833

Modified Files:
	sky.cpp 
Log Message:
Allow the BASS debugger to be invoked by the "standard" Ctrl-D / ~ / #
keys, since ` is bloody awkward on a Swedish keyboard. To keep joostp
happy, ` will still work even if it currently doesn't for any of the other
debug consoles in ScummVM.


Index: sky.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/sky.cpp,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- sky.cpp	14 Sep 2004 20:46:04 -0000	1.149
+++ sky.cpp	15 Sep 2004 15:31:39 -0000	1.150
@@ -176,7 +176,7 @@
 
 void SkyEngine::handleKey(void) {
 
-	if (_key_pressed == '`') {
+	if (_key_pressed == '`' || _key_pressed == '~' || _key_pressed == '#') {
 		_debugger->attach();
 	}
 	
@@ -459,6 +459,9 @@
 						_fastMode ^= 2;
 						break;
 					}
+					if (event.kbd.keycode == 'd') {
+						_debugger->attach();
+					}
 				}
 
 				// Make sure backspace works right (this fixes a small issue on OS X)





More information about the Scummvm-git-logs mailing list