- Remove the mouse input negation out of the event handler.

This commit is contained in:
Mitchell Richters 2023-03-29 22:29:23 +11:00
parent b340807a6b
commit c13745efc8
2 changed files with 3 additions and 3 deletions

View file

@ -218,7 +218,7 @@ bool System_DispatchEvent(event_t* ev)
{
if (ev->type == EV_Mouse && !System_WantGuiCapture())
{
inputState.MouseAddToPos(ev->x, -ev->y);
inputState.MouseAddToPos(ev->x, ev->y);
return true;
}

View file

@ -140,9 +140,9 @@ void processMovement(HIDInput* const hidInput, InputPacket* const inputBuffer, I
// process player pitch input.
if (!(inputBuffer->actions & SB_AIMMODE))
currInput->horz += hidInput->mouseturny - hidInput->joyaxes[JOYAXIS_Pitch] * hidspeed * scaleAdjustf;
currInput->horz -= hidInput->mouseturny + hidInput->joyaxes[JOYAXIS_Pitch] * hidspeed * scaleAdjustf;
else
currInput->fvel -= hidInput->mousemovey - hidInput->joyaxes[JOYAXIS_Pitch] * keymove * scaleAdjustf;
currInput->fvel += hidInput->mousemovey + hidInput->joyaxes[JOYAXIS_Pitch] * keymove * scaleAdjustf;
// process movement input.
currInput->fvel += moving * keymove;