From 3bc4cfcf875fe4648e2d29e4b949a58a9a707fe7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 30 Apr 2014 00:58:23 -0400 Subject: strife: Fix joystick jump button. The code to handle the joystick jump button variable was not implemented. Check the jump button on the joystick as well as the keyboard and mouse button equivalents when deciding whether to set the jump bit. --- src/strife/g_game.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/strife/g_game.c b/src/strife/g_game.c index f90034ff..d1778e11 100644 --- a/src/strife/g_game.c +++ b/src/strife/g_game.c @@ -487,7 +487,8 @@ void G_BuildTiccmd (ticcmd_t* cmd, int maketic) cmd->chatchar = HU_dequeueChatChar(); // villsa [STRIFE] - add mouse button support for jump - if(gamekeydown[key_jump] || mousebuttons[mousebjump]) + if (gamekeydown[key_jump] || mousebuttons[mousebjump] + || joybuttons[joybjump]) cmd->buttons2 |= BT2_JUMP; // villsa [STRIFE]: Moved mousebuttons[mousebfire] to below -- cgit v1.2.3