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

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Sat Oct 31 10:48:19 CET 2009


Revision: 45554
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45554&view=rev
Author:   Kirben
Date:     2009-10-31 09:48:19 +0000 (Sat, 31 Oct 2009)

Log Message:
-----------
Add patch from Tobias, for menu keys in PCE version of Loom, with minor change.

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

Modified: scummvm/trunk/engines/scumm/input.cpp
===================================================================
--- scummvm/trunk/engines/scumm/input.cpp	2009-10-30 23:44:12 UTC (rev 45553)
+++ scummvm/trunk/engines/scumm/input.cpp	2009-10-31 09:48:19 UTC (rev 45554)
@@ -589,6 +589,25 @@
 				// Map arrow keys to number keys in the SEGA version of MI to support
 				// scrolling to conversation choices. See bug report #1193185 for details.
 				_mouseAndKeyboardStat = lastKeyHit.keycode - Common::KEYCODE_UP + 54;
+			} else if (_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine) {
+				// Map arrow keys to number keys in the PCEngine version of Loom to support
+				// the menu screen.
+				switch (lastKeyHit.keycode) {
+				case Common::KEYCODE_UP:
+					_mouseAndKeyboardStat = 328; 
+					break;
+				case Common::KEYCODE_DOWN: 
+					_mouseAndKeyboardStat = 336; 
+					break;
+				case Common::KEYCODE_LEFT: 
+					_mouseAndKeyboardStat = 331; 
+					break;
+				case Common::KEYCODE_RIGHT: 
+					_mouseAndKeyboardStat = 333; 
+					break;
+				default:
+					break;
+				}
 			} else if (_game.version >= 7) {
 				// Don't let pre-V7 game see arrow keys. This fixes bug with up arrow (273)
 				// corresponding to the "instant win" cheat in MI2 mentioned above.


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