diff --git a/crates/bevy_input/src/touch.rs b/crates/bevy_input/src/touch.rs index efdfa04f5348f..7333ac2d3eacc 100644 --- a/crates/bevy_input/src/touch.rs +++ b/crates/bevy_input/src/touch.rs @@ -274,7 +274,7 @@ impl Touches { self.just_cancelled.values() } - /// Retrieves the position of the first currently pressed touch + /// Retrieves the position of the first currently pressed touch, if any pub fn first_pressed_position(&self) -> Option { self.pressed.values().next().map(|t| t.position) }