mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-24 21:11:24 +00:00
- Negate ControlInfo::dpitch
to match data out of backend.
This commit is contained in:
parent
fc069feac6
commit
08d22f49f4
2 changed files with 3 additions and 3 deletions
|
@ -137,9 +137,9 @@ void processMovement(InputPacket* const currInput, InputPacket* const inputBuffe
|
|||
|
||||
// process player pitch input.
|
||||
if (!(inputBuffer->actions & SB_AIMMODE))
|
||||
currInput->horz += hidInput->mouseturny + hidInput->dpitch * hidspeed * scaleAdjustf;
|
||||
currInput->horz += hidInput->mouseturny - hidInput->dpitch * hidspeed * scaleAdjustf;
|
||||
else
|
||||
currInput->fvel -= hidInput->mousemovey + hidInput->dpitch * keymove * scaleAdjustf;
|
||||
currInput->fvel -= hidInput->mousemovey - hidInput->dpitch * keymove * scaleAdjustf;
|
||||
|
||||
// process movement input.
|
||||
currInput->fvel += moving * keymove;
|
||||
|
|
|
@ -213,7 +213,7 @@ void getHidInput(HIDInput* const hidInput)
|
|||
I_GetAxes(joyaxes);
|
||||
|
||||
hidInput->dyaw += joyaxes[JOYAXIS_Yaw];
|
||||
hidInput->dpitch += -joyaxes[JOYAXIS_Pitch];
|
||||
hidInput->dpitch += joyaxes[JOYAXIS_Pitch];
|
||||
hidInput->dforward += joyaxes[JOYAXIS_Forward] * .5f;
|
||||
hidInput->dside += joyaxes[JOYAXIS_Side] * .5f;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue