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<Axis> for Axis
impl PartialEq<Axis> for Axis
source§impl PartialOrd<Axis> for Axis
impl PartialOrd<Axis> 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 more