mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- remove in_mousedeadzone, mirroring EDuke's removal of this.
This commit is contained in:
parent
8aee2f9489
commit
68dc8d1812
1 changed files with 0 additions and 13 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue