[][src]Trait piston_window::ControllerAxisEvent

pub trait ControllerAxisEvent {
    pub fn from_controller_axis_args(
        args: ControllerAxisArgs,
        old_event: &Self
    ) -> Option<Self>;
pub fn controller_axis<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(ControllerAxisArgs) -> U
; pub fn controller_axis_args(&self) -> Option<ControllerAxisArgs> { ... } }

The position of a controller axis changed.

Required methods

pub fn from_controller_axis_args(
    args: ControllerAxisArgs,
    old_event: &Self
) -> Option<Self>
[src]

Creates a controller axis event.

Preserves time stamp from original input event, if any.

pub fn controller_axis<U, F>(&self, f: F) -> Option<U> where
    F: FnMut(ControllerAxisArgs) -> U, 
[src]

Calls closure if this is a controller axis event.

Loading content...

Provided methods

pub fn controller_axis_args(&self) -> Option<ControllerAxisArgs>[src]

Returns controller axis arguments.

Loading content...

Implementors

impl ControllerAxisEvent for Event[src]

Loading content...