Enum glfw::GamepadButton
source · [−]#[repr(i32)]
pub enum GamepadButton {
Show 15 variants
ButtonA,
ButtonB,
ButtonX,
ButtonY,
ButtonLeftBumper,
ButtonRightBumper,
ButtonBack,
ButtonStart,
ButtonGuide,
ButtonLeftThumb,
ButtonRightThumb,
ButtonDpadUp,
ButtonDpadRight,
ButtonDpadDown,
ButtonDpadLeft,
}
Expand description
Button identifier tokens.
Variants
ButtonA
ButtonB
ButtonX
ButtonY
ButtonLeftBumper
ButtonRightBumper
ButtonBack
ButtonStart
ButtonGuide
ButtonLeftThumb
ButtonRightThumb
ButtonDpadUp
ButtonDpadRight
ButtonDpadDown
ButtonDpadLeft
Implementations
sourceimpl GamepadButton
impl GamepadButton
sourcepub fn from_i32(n: i32) -> Option<GamepadButton>
pub fn from_i32(n: i32) -> Option<GamepadButton>
Converts from i32
.
Trait Implementations
sourceimpl Clone for GamepadButton
impl Clone for GamepadButton
sourcefn clone(&self) -> GamepadButton
fn clone(&self) -> GamepadButton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GamepadButton
impl Debug for GamepadButton
sourceimpl Hash for GamepadButton
impl Hash for GamepadButton
sourceimpl Ord for GamepadButton
impl Ord for GamepadButton
sourceimpl PartialEq<GamepadButton> for GamepadButton
impl PartialEq<GamepadButton> for GamepadButton
sourceimpl PartialOrd<GamepadButton> for GamepadButton
impl PartialOrd<GamepadButton> for GamepadButton
sourcefn partial_cmp(&self, other: &GamepadButton) -> Option<Ordering>
fn partial_cmp(&self, other: &GamepadButton) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for GamepadButton
impl Eq for GamepadButton
impl StructuralEq for GamepadButton
impl StructuralPartialEq for GamepadButton
Auto Trait Implementations
impl RefUnwindSafe for GamepadButton
impl Send for GamepadButton
impl Sync for GamepadButton
impl Unpin for GamepadButton
impl UnwindSafe for GamepadButton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more