mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
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:
parent
0396f79c15
commit
8f1d1fa94b
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue