Trait input::TouchEvent [] [src]

pub trait TouchEvent: Sized {
    fn from_touch_args(args: &TouchArgs, old_event: &Self) -> Option<Self>;
fn touch<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(&TouchArgs) -> U
; fn touch_args(&self) -> Option<TouchArgs> { ... } }

When a touch is started, moved, ended or cancelled.

Required Methods

Creates a touch event.

Calls closure if this is a touch event.

Provided Methods

Returns touch arguments.

Implementors