#[repr(u32)]pub enum EVRButtonId {
Show 15 variants
k_EButton_System = 0,
k_EButton_ApplicationMenu = 1,
k_EButton_Grip = 2,
k_EButton_DPad_Left = 3,
k_EButton_DPad_Up = 4,
k_EButton_DPad_Right = 5,
k_EButton_DPad_Down = 6,
k_EButton_A = 7,
k_EButton_ProximitySensor = 31,
k_EButton_Axis0 = 32,
k_EButton_Axis1 = 33,
k_EButton_Axis2 = 34,
k_EButton_Axis3 = 35,
k_EButton_Axis4 = 36,
k_EButton_Max = 64,
}Expand description
VR controller button and axis IDs
Variants§
k_EButton_System = 0
k_EButton_ApplicationMenu = 1
k_EButton_Grip = 2
k_EButton_DPad_Left = 3
k_EButton_DPad_Up = 4
k_EButton_DPad_Right = 5
k_EButton_DPad_Down = 6
k_EButton_A = 7
k_EButton_ProximitySensor = 31
k_EButton_Axis0 = 32
k_EButton_Axis1 = 33
k_EButton_Axis2 = 34
k_EButton_Axis3 = 35
k_EButton_Axis4 = 36
k_EButton_Max = 64
Trait Implementations§
Source§impl Clone for EVRButtonId
impl Clone for EVRButtonId
Source§fn clone(&self) -> EVRButtonId
fn clone(&self) -> EVRButtonId
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 ExternType for EVRButtonId
impl ExternType for EVRButtonId
Source§impl Hash for EVRButtonId
impl Hash for EVRButtonId
Source§impl PartialEq for EVRButtonId
impl PartialEq for EVRButtonId
impl Eq for EVRButtonId
impl StructuralPartialEq for EVRButtonId
impl UniquePtrTarget for EVRButtonId
impl VectorElement for EVRButtonId
impl WeakPtrTarget for EVRButtonId
Auto Trait Implementations§
impl Freeze for EVRButtonId
impl RefUnwindSafe for EVRButtonId
impl Send for EVRButtonId
impl Sync for EVRButtonId
impl Unpin for EVRButtonId
impl UnwindSafe for EVRButtonId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.