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 b3d646e commit dd71e83Copy full SHA for dd71e83
tests/how_to_test_systems.rs
@@ -86,6 +86,7 @@ fn spawn_enemy_using_input_resource() {
86
// Check resulting changes, one entity has been spawned with `Enemy` component
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();
91
92
// Run systems
0 commit comments