From a0fa0560d490452b0c732939cc93fcb830f32b96 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 29 Jan 2020 21:51:57 +0100 Subject: [PATCH] - removed in_mousedeadzone CVAR. --- source/common/gamecvars.cpp | 6 ------ source/common/gamecvars.h | 1 - source/common/inputstate.cpp | 4 ++-- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/source/common/gamecvars.cpp b/source/common/gamecvars.cpp index 89d3f11ee..b3fea40c0 100644 --- a/source/common/gamecvars.cpp +++ b/source/common/gamecvars.cpp @@ -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") diff --git a/source/common/gamecvars.h b/source/common/gamecvars.h index 855223d91..b2beea32c 100644 --- a/source/common/gamecvars.h +++ b/source/common/gamecvars.h @@ -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) diff --git a/source/common/inputstate.cpp b/source/common/inputstate.cpp index fa83da2a1..675ea4116 100644 --- a/source/common/inputstate.cpp +++ b/source/common/inputstate.cpp @@ -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; } }