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

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Sun Aug 16 03:43:18 CEST 2009


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

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

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

Modified: scummvm/trunk/engines/scumm/input.cpp
===================================================================
--- scummvm/trunk/engines/scumm/input.cpp	2009-08-16 01:36:48 UTC (rev 43419)
+++ scummvm/trunk/engines/scumm/input.cpp	2009-08-16 01:43:18 UTC (rev 43420)
@@ -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