#[repr(u32)]pub enum ControllerButton {
A = 17,
B = 15,
X = 14,
Y = 16,
Up = 10,
Down = 11,
Left = 12,
Right = 13,
LeftTrigger1 = 6,
LeftTrigger2 = 7,
RightTrigger1 = 8,
RightTrigger2 = 9,
}Expand description
A digital channel (button) on the VEX controller.
Variants§
A = 17
The ‘A’ button on the right button pad of the controller.
B = 15
The ‘B’ button on the right button pad of the controller.
X = 14
The ‘X’ button on the right button pad of the controller.
Y = 16
The ‘Y’ button on the right button pad 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.
LeftTrigger1 = 6
The first trigger on the left side of the controller.
LeftTrigger2 = 7
The second trigger on the left side of the controller.
RightTrigger1 = 8
The first trigger on the right side of the controller.
RightTrigger2 = 9
The second trigger on the right side of the controller.
Trait Implementations§
Source§impl Clone for ControllerButton
impl Clone for ControllerButton
Source§fn clone(&self) -> ControllerButton
fn clone(&self) -> ControllerButton
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 ControllerButton
impl Debug for ControllerButton
Source§impl PartialEq for ControllerButton
impl PartialEq for ControllerButton
impl Copy for ControllerButton
impl Eq for ControllerButton
impl StructuralPartialEq for ControllerButton
Auto Trait Implementations§
impl Freeze for ControllerButton
impl RefUnwindSafe for ControllerButton
impl Send for ControllerButton
impl Sync for ControllerButton
impl Unpin for ControllerButton
impl UnwindSafe for ControllerButton
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