Skip to content

Commit 46ca7bc

Browse files
committed
Correct docs.
1 parent 6f9505f commit 46ca7bc

File tree

1 file changed

+2
-1
lines changed
  • crates/processing_input/src

1 file changed

+2
-1
lines changed

crates/processing_input/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ pub fn input_cursor_visible(surface: Entity) -> error::Result<bool> {
176176

177177
/// Flushes the input state by running the relevant schedules. This is required to ensure that
178178
/// Bevy's bookkeeping of input state is up to date after manually sending input events.
179-
/// It should be called at the end of each frame
179+
/// It should be called after sending any input events and before querying input state
180+
/// to ensure that the state reflects the events that were sent.
180181
pub fn input_flush() -> error::Result<()> {
181182
app_mut(|app| {
182183
let world = app.world_mut();

0 commit comments

Comments
 (0)