diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/input/input.cpp | 8 | ||||
-rw-r--r-- | core/input/input.h | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp index a408cd674b..aa64ac09a7 100644 --- a/core/input/input.cpp +++ b/core/input/input.cpp @@ -937,14 +937,6 @@ void Input::joy_axis(int p_device, int p_axis, const JoyAxis &p_value) { return; } - if (p_value.value > joy.last_axis[p_axis]) { - if (p_value.value < joy.last_axis[p_axis] + joy.filter) { - return; - } - } else if (p_value.value > joy.last_axis[p_axis] - joy.filter) { - return; - } - //when changing direction quickly, insert fake event to release pending inputmap actions float last = joy.last_axis[p_axis]; if (p_value.min == 0 && (last < 0.25 || last > 0.75) && (last - 0.5) * (p_value.value - 0.5) < 0) { diff --git a/core/input/input.h b/core/input/input.h index cbb884216a..46e9d24bf2 100644 --- a/core/input/input.h +++ b/core/input/input.h @@ -147,7 +147,6 @@ private: bool connected = false; bool last_buttons[JOY_BUTTON_MAX] = { false }; float last_axis[JOY_AXIS_MAX] = { 0.0f }; - float filter = 0.01f; int last_hat = HAT_MASK_CENTER; int mapping = -1; int hat_current = 0; |