foxygit / doom Log in
commit 3a0370f2762c1927d7819377e798393e5d55ddd8
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Apr 29 00:56:45 2014 -0400
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Tue Apr 29 00:56:45 2014 -0400

    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(-)

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];
     }