We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa68c29 commit a11f342Copy full SHA for a11f342
tests/how_to_test_systems.rs
@@ -87,7 +87,7 @@ fn spawn_enemy_using_input_resource() {
87
assert_eq!(world.query::<&Enemy>().iter(&world).len(), 1);
88
89
// Clear the `just_pressed` status for all `KeyCode`s
90
- world.get_resource_mut::<Input<KeyCode>>().unwrap().update();
+ world.get_resource_mut::<Input<KeyCode>>().unwrap().clear();
91
92
// Run systems
93
update_stage.run(&mut world);
0 commit comments