Skip to content

Commit

Permalink
move system
Browse files Browse the repository at this point in the history
  • Loading branch information
100-TomatoJuice committed Sep 12, 2023
1 parent 24b79cb commit 3de73b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ impl<A: Actionlike> Plugin for InputManagerPlugin<A> {
)
.add_systems(PostUpdate, release_on_input_map_removed::<A>);

app.add_systems(
PreUpdate,
update_action_state::<A>.in_set(InputManagerSystem::Update),
);

app.configure_set(
PreUpdate,
InputManagerSystem::Update
Expand Down Expand Up @@ -130,11 +135,6 @@ impl<A: Actionlike> Plugin for InputManagerPlugin<A> {
.after(InputSystem),
);

app.add_systems(
PreUpdate,
update_action_state::<A>.in_set(InputManagerSystem::Update),
);

#[cfg(feature = "ui")]
app.add_systems(
PreUpdate,
Expand Down

0 comments on commit 3de73b6

Please sign in to comment.