[Scummvm-cvs-logs] SF.net SVN: scummvm:[43422] scummvm/branches/branch-1-0-0/engines/scumm/ input.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Sun Aug 16 03:49:17 CEST 2009


Revision: 43422
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43422&view=rev
Author:   mthreepwood
Date:     2009-08-16 01:49:17 +0000 (Sun, 16 Aug 2009)

Log Message:
-----------
Backport r43420 (Fix using the backspace key on Mac OS X in HE games).

Modified Paths:
--------------
    scummvm/branches/branch-1-0-0/engines/scumm/input.cpp

Modified: scummvm/branches/branch-1-0-0/engines/scumm/input.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/scumm/input.cpp	2009-08-16 01:46:47 UTC (rev 43421)
+++ scummvm/branches/branch-1-0-0/engines/scumm/input.cpp	2009-08-16 01:49:17 UTC (rev 43422)
@@ -135,6 +135,13 @@
 			// Normal key press, pass on to the game.
 			_keyPressed = event.kbd;
 		}
+		
+		// WORKAROUND: On Mac OS X, the ascii value has to be set to the
+		// backspace keycode in order for the backspace to work in HE games.
+		// This includes using the backspace when entering coach names
+		// in the backyard games. 
+		if (_keyPressed.keycode == Common::KEYCODE_BACKSPACE)
+			_keyPressed.ascii = Common::KEYCODE_BACKSPACE;
 
 		// FIXME: We are using ASCII values to index the _keyDownMap here,
 		// yet later one code which checks _keyDownMap will use KEYCODEs


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