Allow analog joystick up axis to be remapped too.
This commit is contained in:
1 parent
6c8a9af300
commit
91fd58f6e4
3 files changed
+7
-1
No files matched your search
@@ -418,7 +418,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]) );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user