#[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 more