2.0 KiB
2.0 KiB
uid |
---|
openxr-valve-index-controller-profile |
Valve Index Controller Profile
Enables the OpenXR interaction profile for the Valve Index controller and exposes the <ValveIndexController>
device layout within the Unity Input System.
For more information about the Valve Index interaction profile, refer to the OpenXR Specification.
Available controls
The following table outlines the mapping between the OpenXR paths and Unity's implementation:
OpenXR Path | Unity Control Name | Type |
---|---|---|
/input/system/click |
system | Boolean |
/input/system/touch |
systemTouched | Boolean |
/input/a/click |
primaryButton | Boolean |
/input/a/touch |
primaryTouched | Boolean |
/input/b/click |
secondaryButton | Boolean |
/input/b/touch |
secondaryTouched | Boolean |
/input/squeeze/value |
grip | Float |
/input/squeeze/value |
gripPressed | Boolean (cast from float) |
/input/squeeze/force |
gripForce | Float |
/input/trigger/click |
triggerPressed | Boolean |
/input/trigger/value |
trigger | Float |
/input/trigger/touch |
triggerTouched | Boolean |
/input/thumbstick |
thumbstick | Vector2 |
/input/thumbstick/click |
thumbstickClicked | Boolean |
/input/thumbstick/touch |
thumbstickTouched | Boolean |
/input/trackpad |
trackpad | Vector2 |
/input/trackpad/touch |
trackpadTouched | Boolean |
/input/trackpad/force |
trackpadForce | Float |
/input/grip/pose |
devicePose | Pose |
/input/aim/pose |
pointer | Pose |
/output/haptic |
haptic | Vibrate |
Unity Layout Only | isTracked | Flag Data |
Unity Layout Only | trackingState | Flag Data |
Unity Layout Only | devicePosition | Vector3 |
Unity Layout Only | deviceRotation | Quaternion |
Unity Layout Only | pointerPosition | Vector3 |
Unity Layout Only | pointerRotation | Quaternion |