pub struct AxisInput {
pub axis: Axis,
pub value: f32,
}Expand description
A general axis change event, used for gamepad inputs like sticks and throttle.
Fields§
§axis: AxisThe axis that moved
value: f32Value. 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more