#[repr(u8)]pub enum ControllerDigital {
L1 = 6,
L2 = 7,
R1 = 8,
R2 = 9,
Up = 10,
Down = 11,
Left = 12,
Right = 13,
X = 14,
B = 15,
Y = 16,
A = 17,
}
Expand description
A digital (button) on the controller
Variants§
L1 = 6
The first trigger on the left side of the controller
L2 = 7
The second trigger on the left side of the controller
R1 = 8
The first trigger on the right side of the controller
R2 = 9
The second trigger on the right side of the controller
Up = 10
The up arrow on the left arrow pad of the controller
Down = 11
The down arrow on the left arrow pad of the controller
Left = 12
The left arrow on the left arrow pad of the controller
Right = 13
The right arrow on the left arrow pad of the controller
X = 14
The ‘X’ button on the right button pad of the controller
B = 15
The ‘B’ button on the right button pad of the controller
Y = 16
The ‘Y’ button on the right button pad of the controller
A = 17
The ‘A’ button on the right button pad of the controller
Trait Implementations§
Source§impl Clone for ControllerDigital
impl Clone for ControllerDigital
Source§fn clone(&self) -> ControllerDigital
fn clone(&self) -> ControllerDigital
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 ControllerDigital
impl Debug for ControllerDigital
impl Copy for ControllerDigital
Auto Trait Implementations§
impl Freeze for ControllerDigital
impl RefUnwindSafe for ControllerDigital
impl Send for ControllerDigital
impl Sync for ControllerDigital
impl Unpin for ControllerDigital
impl UnwindSafe for ControllerDigital
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