- Negate ControlInfo::dpitch to match data out of backend.

This commit is contained in:
Mitchell Richters 2023-03-17 20:37:09 +11:00
parent fc069feac6
commit 08d22f49f4
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;
}