Expand description
A general axis change event, used for gamepad inputs like sticks and throttle.
Fields
axis: Axis
The axis that moved
value: f32
Value. Range depends on the value of axis (generally, sticks and dpad are -1 to 1, most other things 0 to 1)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AxisInput
impl Send for AxisInput
impl Sync for AxisInput
impl Unpin for AxisInput
impl UnwindSafe for AxisInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more