mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-29 12:11:03 +00:00
- Remove the mouse input negation out of the event handler.
This commit is contained in:
parent
b340807a6b
commit
c13745efc8
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue