Trait input::controller::ControllerAxisEvent [−][src]
pub trait ControllerAxisEvent: Sized { fn from_controller_axis_args(
args: ControllerAxisArgs,
old_event: &Self
) -> Option<Self>; fn controller_axis<U, F>(&self, f: F) -> Option<U>
where
F: FnMut(ControllerAxisArgs) -> U; fn controller_axis_args(&self) -> Option<ControllerAxisArgs> { ... } }
The position of a controller axis changed.
Required methods
fn from_controller_axis_args(
args: ControllerAxisArgs,
old_event: &Self
) -> Option<Self>
[src]
args: ControllerAxisArgs,
old_event: &Self
) -> Option<Self>
Creates a controller axis event.
Preserves time stamp from original input event, if any.
fn controller_axis<U, F>(&self, f: F) -> Option<U> where
F: FnMut(ControllerAxisArgs) -> U,
[src]
F: FnMut(ControllerAxisArgs) -> U,
Calls closure if this is a controller axis event.
Provided methods
fn controller_axis_args(&self) -> Option<ControllerAxisArgs>
[src]
Returns controller axis arguments.
Implementors
impl ControllerAxisEvent for Event
[src]
fn from_controller_axis_args(
args: ControllerAxisArgs,
old_event: &Self
) -> Option<Self>
[src]
args: ControllerAxisArgs,
old_event: &Self
) -> Option<Self>
fn controller_axis<U, F>(&self, f: F) -> Option<U> where
F: FnMut(ControllerAxisArgs) -> U,
[src]
F: FnMut(ControllerAxisArgs) -> U,