mirror of
https://github.com/nzp-team/glquake.git
synced 2025-03-12 12:22:00 +00:00
Prioritize Analog movement over bindings
This commit is contained in:
parent
5ea6df895b
commit
ea706d1aa9
1 changed files with 6 additions and 2 deletions
|
@ -198,8 +198,12 @@ void IN_Move (usercmd_t *cmd)
|
||||||
else
|
else
|
||||||
move_y = IN_CalcInput(input_y, cl_backspeed, deadZone, acceleration);
|
move_y = IN_CalcInput(input_y, cl_backspeed, deadZone, acceleration);
|
||||||
|
|
||||||
cmd->sidemove += move_x;
|
// cypress -- explicitly setting instead of adding so we always prioritize
|
||||||
cmd->forwardmove += move_y;
|
// analog movement over standard bindings if both are at play
|
||||||
|
if (move_x != 0 || move_y != 0) {
|
||||||
|
cmd->sidemove = move_x;
|
||||||
|
cmd->forwardmove = move_y;
|
||||||
|
}
|
||||||
|
|
||||||
// crosshair stuff
|
// crosshair stuff
|
||||||
if (input_x < 50 && input_x > -50 && input_y < 50 && input_y > -50) {
|
if (input_x < 50 && input_x > -50 && input_y < 50 && input_y > -50) {
|
||||||
|
|
Loading…
Reference in a new issue