Skip to content

Commit

Permalink
Runs input systems on PreUpdate schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
mnmaita committed Nov 17, 2023
1 parent e78a177 commit d77cc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct InputPlugin;

impl Plugin for InputPlugin {
fn build(&self, app: &mut App) {
app.add_systems(Update, mouse_input.run_if(playing()));
app.add_systems(PreUpdate, mouse_input.run_if(playing()));
}
}

Expand Down

0 comments on commit d77cc4b

Please sign in to comment.