shithub: choc

Download patch

ref: 3a0370f2762c1927d7819377e798393e5d55ddd8
parent: 6d48ceda65af5e3118a43dbbfeb5b699c308cd4c
author: Simon Howard <fraggle@gmail.com>
date: Mon Apr 28 20:56:45 EDT 2014

hexen: Fix joystick strafe left/right buttons.

Hexen was missing the code to handle the strafe left/right buttons.

--- a/src/hexen/g_game.c
+++ b/src/hexen/g_game.c
@@ -314,11 +314,13 @@
     {
         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];
     }