mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
599f381a6a
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |