#[repr(u16)]pub enum Button {
Show 21 variants
None = 0,
Up = 1,
Down = 2,
Left = 4,
Right = 8,
A = 16,
B = 32,
X = 64,
Y = 128,
Start = 256,
Select = 512,
Menu = 1_024,
LeftTrigger = 2_048,
RightTrigger = 4_096,
LeftShoulder = 8_192,
RightShoulder = 16_384,
Any = 65_535,
AnyDirection = 15,
AnyFace = 240,
AnySystem = 1_792,
AnyUpper = 30_720,
}Expand description
A virtual gamepad button with a 0 or 1 state.
Variants§
None = 0
Up = 1
Down = 2
Left = 4
Right = 8
A = 16
B = 32
X = 64
Y = 128
Start = 256
Select = 512
Menu = 1_024
LeftTrigger = 2_048
RightTrigger = 4_096
LeftShoulder = 8_192
RightShoulder = 16_384
Any = 65_535
AnyDirection = 15
AnyFace = 240
AnySystem = 1_792
AnyUpper = 30_720
Trait Implementations§
impl Copy 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