Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only insert or remove input if needed (bevyengine#4273)
# Objective We are currently inserting an `input` into `pressed` even if it is already pressed. This also applies to releasing an input. This is not a big deal, but since we are already checking if the `input` is pressed or not we might as well remove the cost of the value update caused by the `pressed.insert` method. Related to bevyengine#4209 ## Solution Only insert or remove input if needed.
- Loading branch information