diff --git a/RELEASES.md b/RELEASES.md index 49ab278b..d50dab55 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,5 +1,10 @@ # Release Notes +## Unreleased + +### Bugs +- A disabled `ToggleActions` of one `Action` now does not release other `Action`'s inputs. + ## Version 0.11.1 - `bevy_egui` integration and the `egui` feature flag have been added back with the release of `bevy_egui` 0.23. diff --git a/src/plugin.rs b/src/plugin.rs index 216945d0..4815fb22 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -102,16 +102,13 @@ impl Plugin for InputManagerPlugin { app.add_systems( PreUpdate, - update_action_state::.in_set(InputManagerSystem::Update), - ); - - app.configure_sets( - PreUpdate, - InputManagerSystem::Update + update_action_state:: .run_if(run_if_enabled::) - .after(InputSystem), + .in_set(InputManagerSystem::Update), ); + app.configure_sets(PreUpdate, InputManagerSystem::Update.after(InputSystem)); + #[cfg(feature = "egui")] app.configure_sets( PreUpdate, @@ -125,7 +122,6 @@ impl Plugin for InputManagerPlugin { app.configure_sets( PreUpdate, InputManagerSystem::ManualControl - .run_if(run_if_enabled::) .before(InputManagerSystem::ReleaseOnDisable) .after(InputManagerSystem::Tick) // Must run after the system is updated from inputs, or it will be forcibly released due to the inputs @@ -139,6 +135,7 @@ impl Plugin for InputManagerPlugin { app.add_systems( PreUpdate, update_action_state_from_interaction:: + .run_if(run_if_enabled::) .in_set(InputManagerSystem::ManualControl), ); }