Enum vex_sdk::controller::V5_ControllerIndex
source · #[repr(C)]pub enum V5_ControllerIndex {
Show 21 variants
Axis1 = 0,
Axis2 = 1,
Axis3 = 2,
Axis4 = 3,
ButtonL1 = 4,
ButtonL2 = 5,
ButtonR1 = 6,
ButtonR2 = 7,
ButtonUp = 8,
ButtonDown = 9,
ButtonLeft = 10,
ButtonRight = 11,
ButtonX = 12,
ButtonB = 13,
ButtonY = 14,
ButtonA = 15,
ButtonSEL = 16,
BatteryLevel = 17,
ButtonAll = 18,
Flags = 19,
BatteryCapacity = 20,
}Variants§
Axis1 = 0
Axis2 = 1
Axis3 = 2
Axis4 = 3
ButtonL1 = 4
ButtonL2 = 5
ButtonR1 = 6
ButtonR2 = 7
ButtonUp = 8
ButtonDown = 9
ButtonLeft = 10
ButtonRight = 11
ButtonX = 12
ButtonB = 13
ButtonY = 14
ButtonA = 15
ButtonSEL = 16
BatteryLevel = 17
ButtonAll = 18
Flags = 19
BatteryCapacity = 20
Trait Implementations§
source§impl Clone for V5_ControllerIndex
impl Clone for V5_ControllerIndex
source§fn clone(&self) -> V5_ControllerIndex
fn clone(&self) -> V5_ControllerIndex
Returns a copy 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 V5_ControllerIndex
impl Debug for V5_ControllerIndex
source§impl PartialEq for V5_ControllerIndex
impl PartialEq for V5_ControllerIndex
source§fn eq(&self, other: &V5_ControllerIndex) -> bool
fn eq(&self, other: &V5_ControllerIndex) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for V5_ControllerIndex
impl Eq for V5_ControllerIndex
impl StructuralPartialEq for V5_ControllerIndex
Auto Trait Implementations§
impl Freeze for V5_ControllerIndex
impl RefUnwindSafe for V5_ControllerIndex
impl Send for V5_ControllerIndex
impl Sync for V5_ControllerIndex
impl Unpin for V5_ControllerIndex
impl UnwindSafe for V5_ControllerIndex
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