bevy/crates/bevy_input
Jakob Hellermann 599f381a6a
fix repeated gamepad events (#1221)
Previously, if the actual value of LeftStickX was e.g. 0.034 and fluctuated a little
bit (less than the threshold) it would repeatedly send out events,
because it compared the value to the *filtered* old one - 0.0 - which is
more then `0.01` (the threshold) away.

The is fixed by first doing the deadzone and then comparing to the old
value.
Another possible solution would be to store both the actual old value
and the filtered one, but that would add complexity.
2021-01-07 12:35:40 -08:00
..
src fix repeated gamepad events (#1221) 2021-01-07 12:35:40 -08:00
Cargo.toml release 0.4.0 (#1093) 2020-12-19 13:28:00 -06:00