Fix mouse move precision loss when only moving the mouse a pixel or two. Also make the baseline mouse scaling more reasonable.

This commit is contained in:
Magnus Norddahl 2019-12-31 01:46:54 +01:00
parent 0396f79c15
commit 8f1d1fa94b
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ void D_PostEvent (const event_t *ev)
if (ev->type == EV_Mouse && GUICapture == 0 && appactive)
{
inputState.MouseAddToPos(ev->x / 3, -ev->y / 2);
inputState.MouseAddToPos(ev->x, -ev->y);
return;
}

View file

@ -15,7 +15,7 @@ void InputState::GetMouseDelta(ControlInfo * info)
input = g_mousePos;
g_mousePos = {};
vec2f_t finput = { float(input.x), float(input.y) };
vec2f_t finput = { float(input.x) / 3.0f, float(input.y) };
if (in_mousesmoothing)
{