#[non_exhaustive]pub enum Axis {
LeftX,
LeftY,
RightX,
RightY,
TriggerLeft,
TriggerRight,
}
Expand description
An axis like sticks and trigger buttons on a game controller.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LeftX
An horizontal input of the left stick.
LeftY
An vertical input of the left stick.
RightX
An horizontal input of the right stick.
RightY
An vertical input of the right stick.
TriggerLeft
An trigger button on the left.
TriggerRight
An trigger button on the right.
Implementations§
Trait Implementations§
Source§impl PartialOrd for Axis
impl PartialOrd for Axis
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnwindSafe for Axis
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