Trait input::mouse::MouseRelativeEvent [] [src]

pub trait MouseRelativeEvent: Sized {
    fn from_xy(x: f64, y: f64, old_event: &Self) -> Option<Self>;
fn mouse_relative<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(f64, f64) -> U
; fn mouse_relative_args(&self) -> Option<[f64; 2]> { ... } }

The relative movement of mouse cursor

Required Methods

Creates a mouse relative event.

Calls closure if this is a mouse relative event.

Provided Methods

Returns mouse relative arguments.

Implementors