Skip to content

Commit

Permalink
Update crates/bevy_input/src/touch.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
  • Loading branch information
ManevilleF and alice-i-cecile committed May 25, 2022
1 parent 98b41f6 commit 1fbe3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_input/src/touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec2> {
self.pressed.values().next().map(|t| t.position)
}
Expand Down

0 comments on commit 1fbe3ce

Please sign in to comment.