Skip to content

Commit

Permalink
bevy: Make GameInput available as a resource during Poll
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Jun 16, 2021
1 parent e95ddcd commit 77d3b6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bevy_backroll/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ impl<T: Config> Stage for BackrollStage<T> {
return;
};

world.insert_resource(GameInput::<T::Input>::default());
self.run_commands(session.poll(), world);
world.remove_resource::<GameInput<T::Input>>();

if self.staller.should_stall() {
continue;
Expand Down

0 comments on commit 77d3b6b

Please sign in to comment.