#[repr(u16)]pub enum Button {
Show 20 variants
South = 1,
East = 2,
North = 4,
West = 5,
C = 3,
Z = 6,
LeftTrigger = 7,
LeftTrigger2 = 9,
RightTrigger = 8,
RightTrigger2 = 10,
Select = 11,
Start = 12,
Mode = 13,
LeftThumb = 14,
RightThumb = 15,
DPadUp = 16,
DPadDown = 17,
DPadLeft = 18,
DPadRight = 19,
Unknown = 0,
}
Expand description
Gamepad’s elements which state can be represented by value from 0.0 to 1.0.
Variants§
South = 1
East = 2
North = 4
West = 5
C = 3
Z = 6
LeftTrigger = 7
LeftTrigger2 = 9
RightTrigger = 8
RightTrigger2 = 10
Select = 11
Start = 12
Mode = 13
LeftThumb = 14
RightThumb = 15
DPadUp = 16
DPadDown = 17
DPadLeft = 18
DPadRight = 19
Unknown = 0
Implementations§
Trait Implementations§
source§impl PartialEq for Button
impl PartialEq for Button
impl Copy for Button
impl Eq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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