mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
- removed in_mousedeadzone CVAR.
This commit is contained in:
parent
68dc8d1812
commit
a0fa0560d4
3 changed files with 2 additions and 9 deletions
|
@ -296,12 +296,6 @@ CUSTOM_CVARD(Int, in_mousebias, 0, CVAR_GLOBALCONFIG|CVAR_ARCHIVE, "emulates the
|
||||||
else if (self > 32) self = 32;
|
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")
|
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")
|
CUSTOM_CVARD(Float, in_mousesensitivity, 1, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "changes the mouse sensitivity")
|
||||||
|
|
|
@ -87,7 +87,6 @@ EXTERN_CVAR(Int, gl_ssao)
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, in_joystick)
|
EXTERN_CVAR(Bool, in_joystick)
|
||||||
EXTERN_CVAR(Int, in_mousebias)
|
EXTERN_CVAR(Int, in_mousebias)
|
||||||
EXTERN_CVAR(Int, in_mousedeadzone)
|
|
||||||
EXTERN_CVAR(Bool, in_mouseflip)
|
EXTERN_CVAR(Bool, in_mouseflip)
|
||||||
EXTERN_CVAR(Bool, in_mousemode)
|
EXTERN_CVAR(Bool, in_mousemode)
|
||||||
EXTERN_CVAR(Bool, in_mousesmoothing)
|
EXTERN_CVAR(Bool, in_mousesmoothing)
|
||||||
|
|
|
@ -70,9 +70,9 @@ void InputState::GetMouseDelta(ControlInfo * info)
|
||||||
if (in_mousebias)
|
if (in_mousebias)
|
||||||
{
|
{
|
||||||
if (abs(info->mousex) > abs(info->mousey))
|
if (abs(info->mousex) > abs(info->mousey))
|
||||||
info->mousey = tabledivide32_noinline(info->mousey, in_mousebias);
|
info->mousey /= in_mousebias;
|
||||||
else
|
else
|
||||||
info->mousex = tabledivide32_noinline(info->mousex, in_mousebias);
|
info->mousex /= in_mousebias;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue