pub struct Touch {
pub id: TouchId,
pub pos: (f64, f64),
pub prev_pos: (f64, f64),
pub force: Option<f64>,
pub start_time: f64,
}Expand description
Single touch point state
Fields§
§id: TouchIdUnique identifier for this touch
pos: (f64, f64)Current position in screen coordinates
prev_pos: (f64, f64)Previous position (for calculating delta)
force: Option<f64>Force/pressure (0.0 to 1.0, optional depending on hardware)
start_time: f64Time when this touch started (in seconds)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Touch
impl RefUnwindSafe for Touch
impl Send for Touch
impl Sync for Touch
impl Unpin for Touch
impl UnsafeUnpin for Touch
impl UnwindSafe for Touch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more