Enum glfw::GamepadAxis
source · #[repr(i32)]pub enum GamepadAxis {
AxisLeftX = 0,
AxisLeftY = 1,
AxisRightX = 2,
AxisRightY = 3,
AxisLeftTrigger = 4,
AxisRightTrigger = 5,
}
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 for GamepadAxis
impl PartialEq 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 for GamepadAxis
impl PartialOrd 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 moreimpl Copy for GamepadAxis
impl Eq for GamepadAxis
impl StructuralPartialEq for GamepadAxis
Auto Trait Implementations§
impl RefUnwindSafe for GamepadAxis
impl Send for GamepadAxis
impl Sync for GamepadAxis
impl Unpin for GamepadAxis
impl UnwindSafe for GamepadAxis
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