pub enum FaceButton {
Accelerator,
Brake,
Drift,
BrakeDrift,
Item,
Unknown,
}Expand description
A face button that can be active during a single input entry.
Multiple buttons may be simultaneously active in a single FaceInput;
see parse_face_buttons for the bitmask layout.
Variants§
Accelerator
Accelerator button (bit 0, mask 0x01).
Brake
Brake button (bit 1, mask 0x02).
Drift
Drift button (bit 3, mask 0x08).
BrakeDrift
Combined brake and drift (bit 4, mask 0x10).
Item
Item button (bit 2, mask 0x04).
Unknown
An unrecognized button bit was set in the upper nibble.
Trait Implementations§
Source§impl Clone for FaceButton
impl Clone for FaceButton
Source§fn clone(&self) -> FaceButton
fn clone(&self) -> FaceButton
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 FaceButton
impl Debug for FaceButton
Source§impl PartialEq for FaceButton
impl PartialEq for FaceButton
impl Copy for FaceButton
impl StructuralPartialEq for FaceButton
Auto Trait Implementations§
impl Freeze for FaceButton
impl RefUnwindSafe for FaceButton
impl Send for FaceButton
impl Sync for FaceButton
impl Unpin for FaceButton
impl UnsafeUnpin for FaceButton
impl UnwindSafe for FaceButton
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