Better melee keys

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@228 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-11-22 01:53:05 +00:00
parent f4979971e3
commit a3c7768c6f
+14 -2
View File
@@ -55,7 +55,19 @@ LoadKeyConfig (FILE *fp, DWORD length)
ReadResFile (buf, 1, sizeof (buf), fp);
for (i = 0, pbuf = buf; i < NUM_PLAYERS; ++i, pbuf += 10)
// new temporary melee keys 2002/11/22
// mapped as left, right, thrust, ?, ?, fire, special, ?, ?
KeyboardInput[0] = CaptureInputDevice
(
CreateJoystickKeyboardDevice (SK_LF_ARROW, SK_RT_ARROW, SK_UP_ARROW, 0, 0, SK_RT_SHIFT, SK_CTL, 0, 0x1b)
);
KeyboardInput[1] = CaptureInputDevice
(
CreateJoystickKeyboardDevice ('s', 'f', 'e', 0, 0, 'q', 'a', 0, 0x1b)
);
// old melee key code
/*for (i = 0, pbuf = buf; i < NUM_PLAYERS; ++i, pbuf += 10)
{
KeyboardInput[i] = CaptureInputDevice (
CreateJoystickKeyboardDevice (
@@ -65,7 +77,7 @@ LoadKeyConfig (FILE *fp, DWORD length)
)
);
}
}*/
(void) length; /* Satisfying compiler (unused parameter) */
return (NULL_HANDLE);