diff options
author | Simon Howard | 2014-04-29 00:56:45 -0400 |
---|---|---|
committer | Simon Howard | 2014-04-29 00:56:45 -0400 |
commit | 3a0370f2762c1927d7819377e798393e5d55ddd8 (patch) | |
tree | dd4be99d86194c816ad6394e9e471528bc1786b8 | |
parent | 6d48ceda65af5e3118a43dbbfeb5b699c308cd4c (diff) | |
download | chocolate-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.
-rw-r--r-- | src/hexen/g_game.c | 6 |
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]; } |