- remove in_mousedeadzone, mirroring EDuke's removal of this.

This commit is contained in:
Christoph Oelckers 2020-01-29 21:06:47 +01:00
parent 8aee2f9489
commit 68dc8d1812

View file

@ -67,19 +67,6 @@ void InputState::GetMouseDelta(ControlInfo * info)
//info->mousex = int(finput.x * (4.f) * in_mousesensitivity * in_mouseside);
//info->mousey = int(finput.y * (4.f) * in_mousesensitivity * in_mouseforward);
if (in_mousedeadzone)
{
if (info->mousey > 0)
info->mousey = max(info->mousey - in_mousedeadzone, 0);
else if (info->mousey < 0)
info->mousey = min(info->mousey + in_mousedeadzone, 0);
if (info->mousex > 0)
info->mousex = max(info->mousex - in_mousedeadzone, 0);
else if (info->mousex < 0)
info->mousex = min(info->mousex + in_mousedeadzone, 0);
}
if (in_mousebias)
{
if (abs(info->mousex) > abs(info->mousey))