summaryrefslogtreecommitdiff
path: root/src/hexen
diff options
context:
space:
mode:
authorSimon Howard2014-04-29 00:56:45 -0400
committerSimon Howard2014-04-29 00:56:45 -0400
commit3a0370f2762c1927d7819377e798393e5d55ddd8 (patch)
treedd4be99d86194c816ad6394e9e471528bc1786b8 /src/hexen
parent6d48ceda65af5e3118a43dbbfeb5b699c308cd4c (diff)
downloadchocolate-doom-3a0370f2762c1927d7819377e798393e5d55ddd8.tar.gz
chocolate-doom-3a0370f2762c1927d7819377e798393e5d55ddd8.tar.bz2
chocolate-doom-3a0370f2762c1927d7819377e798393e5d55ddd8.zip
hexen: Fix joystick strafe left/right buttons.
Hexen was missing the code to handle the strafe left/right buttons.
Diffstat (limited to 'src/hexen')
-rw-r--r--src/hexen/g_game.c6
1 files 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];
}