Enum openvr_sys2::EVRButtonId
source · #[repr(u32)]pub enum EVRButtonId {
Show 15 variants
k_EButton_System,
k_EButton_ApplicationMenu,
k_EButton_Grip,
k_EButton_DPad_Left,
k_EButton_DPad_Up,
k_EButton_DPad_Right,
k_EButton_DPad_Down,
k_EButton_A,
k_EButton_ProximitySensor,
k_EButton_Axis0,
k_EButton_Axis1,
k_EButton_Axis2,
k_EButton_Axis3,
k_EButton_Axis4,
k_EButton_Max,
}Expand description
VR controller button and axis IDs
Variants§
k_EButton_System
k_EButton_ApplicationMenu
k_EButton_Grip
k_EButton_DPad_Left
k_EButton_DPad_Up
k_EButton_DPad_Right
k_EButton_DPad_Down
k_EButton_A
k_EButton_ProximitySensor
k_EButton_Axis0
k_EButton_Axis1
k_EButton_Axis2
k_EButton_Axis3
k_EButton_Axis4
k_EButton_Max
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<EVRButtonId> for EVRButtonId
impl PartialEq<EVRButtonId> for EVRButtonId
source§fn eq(&self, other: &EVRButtonId) -> bool
fn eq(&self, other: &EVRButtonId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for EVRButtonId
impl StructuralEq for EVRButtonId
impl StructuralPartialEq for EVRButtonId
impl UniquePtrTarget for EVRButtonId
impl VectorElement for EVRButtonId
impl WeakPtrTarget for EVRButtonId
Auto Trait Implementations§
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.