Enum rich_sdl2_rust::event::game_controller::axis::Axis
source · #[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 PartialEq for Axis
impl PartialEq for Axis
source§impl PartialOrd for Axis
impl PartialOrd for Axis
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
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