From a3c7768c6fb00f72c2c8ebfd40c2435c052cafa9 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Fri, 22 Nov 2002 01:53:05 +0000 Subject: [PATCH] Better melee keys git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@228 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/setup.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/setup.c b/sc2/src/sc2code/setup.c index df225b6d8..45f3dd8ee 100644 --- a/sc2/src/sc2code/setup.c +++ b/sc2/src/sc2code/setup.c @@ -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);