Allow analog joystick up axis to be remapped too.
This commit is contained in:
parent
6c8a9af300
commit
91fd58f6e4
3 changed files with 7 additions and 1 deletions
|
@ -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]) );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue