Enum glfw::GamepadAxis
source · #[repr(i32)]
pub enum GamepadAxis {
AxisLeftX,
AxisLeftY,
AxisRightX,
AxisRightY,
AxisLeftTrigger,
AxisRightTrigger,
}
Expand description
Axis identifier tokens.
Variants§
Implementations§
source§impl GamepadAxis
impl GamepadAxis
sourcepub fn from_i32(n: i32) -> Option<GamepadAxis>
pub fn from_i32(n: i32) -> Option<GamepadAxis>
Converts from i32
.
Trait Implementations§
source§impl Clone for GamepadAxis
impl Clone for GamepadAxis
source§fn clone(&self) -> GamepadAxis
fn clone(&self) -> GamepadAxis
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GamepadAxis
impl Debug for GamepadAxis
source§impl Hash for GamepadAxis
impl Hash for GamepadAxis
source§impl Ord for GamepadAxis
impl Ord for GamepadAxis
source§fn cmp(&self, other: &GamepadAxis) -> Ordering
fn cmp(&self, other: &GamepadAxis) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<GamepadAxis> for GamepadAxis
impl PartialEq<GamepadAxis> for GamepadAxis
source§fn eq(&self, other: &GamepadAxis) -> bool
fn eq(&self, other: &GamepadAxis) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GamepadAxis> for GamepadAxis
impl PartialOrd<GamepadAxis> for GamepadAxis
source§fn partial_cmp(&self, other: &GamepadAxis) -> Option<Ordering>
fn partial_cmp(&self, other: &GamepadAxis) -> Option<Ordering>
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