diff options
author | Zack Middleton <zturtleman@gmail.com> | 2012-02-15 18:09:24 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 20:18:09 +0000 |
commit | 3eca313660e7c0bfbe461f034cd2c7c6497e9b56 (patch) | |
tree | c78f5b8359780c7db499583450c2235e422e4b35 /src/client/cl_input.c | |
parent | 8000b6b55c8c432c081172fa0e169e0eb895bf31 (diff) |
Allow analog joystick up axis to be remapped too.
Diffstat (limited to 'src/client/cl_input.c')
-rw-r--r-- | src/client/cl_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/cl_input.c b/src/client/cl_input.c index 1823b9b4..e0bc26cc 100644 --- a/src/client/cl_input.c +++ b/src/client/cl_input.c @@ -419,7 +419,7 @@ void CL_JoystickMove( usercmd_t *cmd ) { cmd->forwardmove = ClampChar( cmd->forwardmove + (int) (j_forward->value * cl.joystickAxis[j_forward_axis->integer]) ); } - cmd->upmove = ClampChar( cmd->upmove + cl.joystickAxis[AXIS_UP] ); + cmd->upmove = ClampChar( cmd->upmove + (int) (j_up->value * cl.joystickAxis[j_up_axis->integer]) ); } /* |