Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect behavior of
just_pressed
and just_released
in `Inpu…
…t<GamepadButton>` (bevyengine#7238) # Objective - Fixes a bug where `just_pressed` and `just_released` in `Input<GamepadButton>` might behave incorrectly due calling `clear` 3 times in a single frame through these three different systems: `gamepad_button_event_system`, `gamepad_axis_event_system` and `gamepad_connection_system` in any order ## Solution - Call `clear` only once and before all the above three systems, i.e. in `gamepad_event_system` ## Additional Info - Discussion in Discord: https://discord.com/channels/691052431525675048/768253008416342076/1064621963693273279
- Loading branch information