From 14c3eb041f99d4c582682d24a9276bd39c546bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Lescaudey=20de=20Maneville?= Date: Sat, 5 Mar 2022 12:19:48 +0100 Subject: [PATCH] Update crates/bevy_input/src/touch.rs Co-authored-by: Alice Cecile --- crates/bevy_input/src/touch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_input/src/touch.rs b/crates/bevy_input/src/touch.rs index a44af1e1a47b9d..2ee3bbec301a06 100644 --- a/crates/bevy_input/src/touch.rs +++ b/crates/bevy_input/src/touch.rs @@ -202,7 +202,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) }