You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove unneeded filter on joy_axis()
This commit is contained in:
@@ -890,14 +890,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) {
|
||||
|
||||
Reference in New Issue
Block a user