[Scummvm-cvs-logs] SF.net SVN: scummvm: [26284] scummvm/trunk/engines/scumm/verbs.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Mar 24 00:38:46 CET 2007
Revision: 26284
http://scummvm.svn.sourceforge.net/scummvm/?rev=26284&view=rev
Author: fingolfin
Date: 2007-03-23 16:38:45 -0700 (Fri, 23 Mar 2007)
Log Message:
-----------
Patch #1687010: FM-Towns: Handle Alt-F5
Modified Paths:
--------------
scummvm/trunk/engines/scumm/verbs.cpp
Modified: scummvm/trunk/engines/scumm/verbs.cpp
===================================================================
--- scummvm/trunk/engines/scumm/verbs.cpp 2007-03-23 23:31:43 UTC (rev 26283)
+++ scummvm/trunk/engines/scumm/verbs.cpp 2007-03-23 23:38:45 UTC (rev 26284)
@@ -557,6 +557,16 @@
_mouseAndKeyboardStat = numpad[_mouseAndKeyboardStat - '0'];
}
+ if (_game.platform == Common::kPlatformFMTowns && (_game.id == GID_ZAK || _game.id == GID_INDY3)) {
+ // HACK: In the FM-Towns games Indy3 and Zak the most significant bit is set for special keys
+ // like F5 (=0x8005) or joystick buttons (mask 0xFE00, e.g. SELECT=0xFE40 for the save/load menu).
+ // Hence the distinction with (_mouseAndKeyboardStat < MBS_MAX_KEY) between mouse- and key-events is not applicable
+ // to this games, so we have to remap the special keys here.
+ if(_mouseAndKeyboardStat == 319) {
+ _mouseAndKeyboardStat = 0x8005;
+ }
+ }
+
// Generic keyboard input
runInputScript(4, _mouseAndKeyboardStat, 1);
} else if (_mouseAndKeyboardStat & MBS_MOUSE_MASK) {
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