diff --git a/main/input_default.cpp b/main/input_default.cpp index e965d2065af6..d9a49d557de3 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -776,17 +776,6 @@ void InputDefault::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/main/input_default.h b/main/input_default.h index c6e806eb033d..55676a96431d 100644 --- a/main/input_default.h +++ b/main/input_default.h @@ -85,7 +85,6 @@ class InputDefault : public Input { bool connected; bool last_buttons[JOY_BUTTON_MAX + 19]; //apparently SDL specifies 35 possible buttons on android float last_axis[JOY_AXIS_MAX]; - float filter; int last_hat; int mapping; int hat_current; @@ -101,7 +100,6 @@ class InputDefault : public Input { } connected = false; last_hat = HAT_MASK_CENTER; - filter = 0.01f; mapping = -1; hat_current = 0; }