#[repr(u32)]pub enum ControllerKey {
None_ = 0,
Trigger = 1,
Grip = 2,
X1 = 3,
X2 = 4,
Stick = 5,
Menu = 6,
}
Expand description
Represents an input from an XR headset’s controller! https://stereokit.net/Pages/StereoKit/ControllerKey.html
see also Input::hand_sim_pose_add
Variants§
None_ = 0
Doesn’t represent a key, generally means this item has not been set to any particular value!
Trigger = 1
The trigger button on the controller, where the user’s index finger typically sits.
Grip = 2
The grip button on the controller, usually where the fingers that are not the index finger sit.
X1 = 3
This is the lower of the two primary thumb buttons, sometimes labelled X, and sometimes A.
X2 = 4
This is the upper of the two primary thumb buttons, sometimes labelled Y, and sometimes B.
Stick = 5
This is when the thumbstick on the controller is actually pressed. This has nothing to do with the horizontal or vertical movement of the stick.
Menu = 6
This is the menu, or settings button of the controller.
Trait Implementations§
Source§impl Clone for ControllerKey
impl Clone for ControllerKey
Source§fn clone(&self) -> ControllerKey
fn clone(&self) -> ControllerKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ControllerKey
impl Debug for ControllerKey
impl Copy for ControllerKey
Auto Trait Implementations§
impl Freeze for ControllerKey
impl RefUnwindSafe for ControllerKey
impl Send for ControllerKey
impl Sync for ControllerKey
impl Unpin for ControllerKey
impl UnwindSafe for ControllerKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.