We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f9505f commit 46ca7bcCopy full SHA for 46ca7bc
crates/processing_input/src/lib.rs
@@ -176,7 +176,8 @@ pub fn input_cursor_visible(surface: Entity) -> error::Result<bool> {
176
177
/// Flushes the input state by running the relevant schedules. This is required to ensure that
178
/// 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
+/// 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.
181
pub fn input_flush() -> error::Result<()> {
182
app_mut(|app| {
183
let world = app.world_mut();
0 commit comments