[Scummvm-cvs-logs] SF.net SVN: scummvm:[42591] scummvm/trunk/engines/agos/input.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sat Jul 18 17:11:20 CEST 2009


Revision: 42591
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42591&view=rev
Author:   fingolfin
Date:     2009-07-18 15:11:19 +0000 (Sat, 18 Jul 2009)

Log Message:
-----------
AGOS: Fixed backspace under OS X in Personal Nightmare

Modified Paths:
--------------
    scummvm/trunk/engines/agos/input.cpp

Modified: scummvm/trunk/engines/agos/input.cpp
===================================================================
--- scummvm/trunk/engines/agos/input.cpp	2009-07-18 13:39:21 UTC (rev 42590)
+++ scummvm/trunk/engines/agos/input.cpp	2009-07-18 15:11:19 UTC (rev 42591)
@@ -664,10 +664,11 @@
 		}
 	}
 	if (chr == -1) {
-		chr = _keyPressed.ascii;
-		if (chr == 8 || chr == 13) {
+		if (_keyPressed.keycode == Common::KEYCODE_BACKSPACE || _keyPressed.keycode == Common::KEYCODE_RETURN) {
+			chr = _keyPressed.keycode;
 			addChar(chr);
 		} else if (!(_videoLockOut & 0x10)) {
+			chr = _keyPressed.ascii;
 			if (chr >= 32)
 				addChar(chr);
 		}


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