Trait input::joystick::JoystickAxisEvent
[−]
[src]
pub trait JoystickAxisEvent: Sized {
fn from_joystick_axis_args(args: JoystickAxisArgs, old_event: &Self) -> Option<Self>;
fn joystick_axis<U, F>(&self, f: F) -> Option<U> where F: FnMut(JoystickAxisArgs) -> U;
fn joystick_axis_args(&self) -> Option<JoystickAxisArgs> { ... }
}
The position of a joystick axis changed.
Required Methods
fn from_joystick_axis_args(args: JoystickAxisArgs, old_event: &Self) -> Option<Self>
Creates a joystick axis event.
fn joystick_axis<U, F>(&self, f: F) -> Option<U> where F: FnMut(JoystickAxisArgs) -> U
Calls closure if this is a joystick axis event.
Provided Methods
fn joystick_axis_args(&self) -> Option<JoystickAxisArgs>
Returns joystick axis arguments.
Implementors
impl<T: GenericEvent> JoystickAxisEvent for T