#[repr(u8)]pub enum GamepadButton {
Show 26 variants
South = 0,
East = 1,
West = 2,
North = 3,
Back = 4,
Guide = 5,
Start = 6,
LeftStick = 7,
RightStick = 8,
LeftShoulder = 9,
RightShoulder = 10,
DpadUp = 11,
DpadDown = 12,
DpadLeft = 13,
DpadRight = 14,
Misc1 = 15,
RightPaddle1 = 16,
LeftPaddle1 = 17,
RightPaddle2 = 18,
LeftPaddle2 = 19,
Touchpad = 20,
Misc2 = 21,
Misc3 = 22,
Misc4 = 23,
Misc5 = 24,
Misc6 = 25,
}Variants§
South = 0
East = 1
West = 2
North = 3
Back = 4
Guide = 5
Start = 6
LeftStick = 7
RightStick = 8
LeftShoulder = 9
RightShoulder = 10
DpadUp = 11
DpadDown = 12
DpadLeft = 13
DpadRight = 14
Misc1 = 15
RightPaddle1 = 16
LeftPaddle1 = 17
RightPaddle2 = 18
LeftPaddle2 = 19
Touchpad = 20
Misc2 = 21
Misc3 = 22
Misc4 = 23
Misc5 = 24
Misc6 = 25
Trait Implementations§
Source§impl Clone for GamepadButton
impl Clone for GamepadButton
Source§fn clone(&self) -> GamepadButton
fn clone(&self) -> GamepadButton
Returns a duplicate 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 GamepadButton
impl Debug for GamepadButton
Source§impl<'de> Deserialize<'de> for GamepadButton
impl<'de> Deserialize<'de> for GamepadButton
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<usize> for GamepadButton
impl Into<usize> for GamepadButton
Source§impl Ord for GamepadButton
impl Ord for GamepadButton
Source§fn cmp(&self, other: &GamepadButton) -> Ordering
fn cmp(&self, other: &GamepadButton) -> 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 GamepadButton
impl PartialEq for GamepadButton
Source§impl PartialOrd for GamepadButton
impl PartialOrd for GamepadButton
Source§impl Serialize for GamepadButton
impl Serialize for GamepadButton
Source§impl TryFrom<u8> for GamepadButton
impl TryFrom<u8> for GamepadButton
Source§type Error = TryFromPrimitiveError<GamepadButton>
type Error = TryFromPrimitiveError<GamepadButton>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for GamepadButton
impl TryFromPrimitive for GamepadButton
const NAME: &'static str = "GamepadButton"
type Primitive = u8
type Error = TryFromPrimitiveError<GamepadButton>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for GamepadButton
impl Eq for GamepadButton
impl StructuralPartialEq for GamepadButton
Auto Trait Implementations§
impl Freeze for GamepadButton
impl RefUnwindSafe for GamepadButton
impl Send for GamepadButton
impl Sync for GamepadButton
impl Unpin for GamepadButton
impl UnwindSafe for GamepadButton
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