From 3a0370f2762c1927d7819377e798393e5d55ddd8 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 29 Apr 2014 00:56:45 -0400 Subject: hexen: Fix joystick strafe left/right buttons. Hexen was missing the code to handle the strafe left/right buttons. --- src/hexen/g_game.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/hexen') diff --git a/src/hexen/g_game.c b/src/hexen/g_game.c index da7d11df..5333c0f6 100644 --- a/src/hexen/g_game.c +++ b/src/hexen/g_game.c @@ -314,11 +314,13 @@ void G_BuildTiccmd(ticcmd_t *cmd, int maketic) { forward -= forwardmove[pClass][speed]; } - if (gamekeydown[key_straferight] || joystrafemove > 0) + if (gamekeydown[key_straferight] || joystrafemove > 0 + || joybuttons[joybstraferight]) { side += sidemove[pClass][speed]; } - if (gamekeydown[key_strafeleft] || joystrafemove < 0) + if (gamekeydown[key_strafeleft] || joystrafemove < 0 + || joybuttons[joybstrafeleft]) { side -= sidemove[pClass][speed]; } -- cgit v1.2.3