- removed in_mousedeadzone CVAR.

This commit is contained in:
Christoph Oelckers 2020-01-29 21:51:57 +01:00
parent 68dc8d1812
commit a0fa0560d4
3 changed files with 2 additions and 9 deletions

View file

@ -296,12 +296,6 @@ CUSTOM_CVARD(Int, in_mousebias, 0, CVAR_GLOBALCONFIG|CVAR_ARCHIVE, "emulates the
else if (self > 32) self = 32;
}
CUSTOM_CVARD(Int, in_mousedeadzone, 0, CVAR_GLOBALCONFIG|CVAR_ARCHIVE, "amount of mouse movement to filter out")
{
if (self < 0) self = 0;
else if (self > 512) self = 512;
}
CVARD(Bool, in_mousesmoothing, false, CVAR_GLOBALCONFIG|CVAR_ARCHIVE, "enable/disable mouse input smoothing")
CUSTOM_CVARD(Float, in_mousesensitivity, 1, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "changes the mouse sensitivity")

View file

@ -87,7 +87,6 @@ EXTERN_CVAR(Int, gl_ssao)
EXTERN_CVAR(Bool, in_joystick)
EXTERN_CVAR(Int, in_mousebias)
EXTERN_CVAR(Int, in_mousedeadzone)
EXTERN_CVAR(Bool, in_mouseflip)
EXTERN_CVAR(Bool, in_mousemode)
EXTERN_CVAR(Bool, in_mousesmoothing)

View file

@ -70,9 +70,9 @@ void InputState::GetMouseDelta(ControlInfo * info)
if (in_mousebias)
{
if (abs(info->mousex) > abs(info->mousey))
info->mousey = tabledivide32_noinline(info->mousey, in_mousebias);
info->mousey /= in_mousebias;
else
info->mousex = tabledivide32_noinline(info->mousex, in_mousebias);
info->mousex /= in_mousebias;
}
}