vex_sdk::controller

Struct V5_ControllerIndex

Source
#[repr(transparent)]
pub struct V5_ControllerIndex(pub c_uchar);

Tuple Fields§

§0: c_uchar

Implementations§

Source§

impl V5_ControllerIndex

Source

pub const AnaLeftX: Self = _

Source

pub const AnaLeftY: Self = _

Source

pub const AnaRightX: Self = _

Source

pub const AnaRightY: Self = _

Source

pub const AnaSpare1: Self = _

Source

pub const AnaSpare2: Self = _

Source

pub const Button5U: Self = _

Source

pub const Button5D: Self = _

Source

pub const Button6U: Self = _

Source

pub const Button6D: Self = _

Source

pub const Button7U: Self = _

Source

pub const Button7D: Self = _

Source

pub const Button7L: Self = _

Source

pub const Button7R: Self = _

Source

pub const Button8U: Self = _

Source

pub const Button8D: Self = _

Source

pub const Button8L: Self = _

Source

pub const Button8R: Self = _

Source

pub const ButtonSEL: Self = _

Source

pub const BatteryLevel: Self = _

Source

pub const ButtonAll: Self = _

Source

pub const Flags: Self = _

Source

pub const BatteryCapacity: Self = _

Source

pub const Axis1: Self = Self::AnaRightX

Source

pub const Axis2: Self = Self::AnaRightY

Source

pub const Axis3: Self = Self::AnaLeftY

Source

pub const Axis4: Self = Self::AnaLeftX

Source

pub const ButtonL1: Self = Self::Button5U

Source

pub const ButtonL2: Self = Self::Button5D

Source

pub const ButtonR1: Self = Self::Button6U

Source

pub const ButtonR2: Self = Self::Button6D

Source

pub const ButtonUp: Self = Self::Button7U

Source

pub const ButtonDown: Self = Self::Button7D

Source

pub const ButtonLeft: Self = Self::Button7L

Source

pub const ButtonRight: Self = Self::Button7R

Source

pub const ButtonX: Self = Self::Button8U

Source

pub const ButtonB: Self = Self::Button8D

Source

pub const ButtonY: Self = Self::Button8L

Source

pub const ButtonA: Self = Self::Button8R

Trait Implementations§

Source§

impl Clone for V5_ControllerIndex

Source§

fn clone(&self) -> V5_ControllerIndex

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for V5_ControllerIndex

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for V5_ControllerIndex

Source§

fn default() -> V5_ControllerIndex

Returns the “default value” for a type. Read more
Source§

impl PartialEq for V5_ControllerIndex

Source§

fn eq(&self, other: &V5_ControllerIndex) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for V5_ControllerIndex

Source§

impl Eq for V5_ControllerIndex

Source§

impl StructuralPartialEq for V5_ControllerIndex

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.