Class ViveHandInteraction.HandInteractionDevice
Inherited Members
Namespace: VIVE.OpenXR.Hand
Assembly: VIVE.OpenXR.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "VIVE Hand Interaction (OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" }, isGenericTypeOfDevice = true)]
public class ViveHandInteraction.HandInteractionDevice : OpenXRDevice
Properties
devicePose
A UnityEngine.XR.OpenXR.Input.PoseControl representing information from the devicePose OpenXR binding.
Declaration
[Preserve]
[InputControl(offset = 0, aliases = new string[] { "device", "gripPose" }, usage = "Device")]
public PoseControl devicePose { get; }
Property Value
Type | Description |
---|---|
PoseControl |
devicePosition
A Vector3Control required for backwards compatibility with the XRSDK layouts. This is the device position. For the VIVE Focus 3 device, this is both the device and the pointer position. This value is equivalent to mapping devicePose/position.
Declaration
[Preserve]
[InputControl(offset = 16, alias = "gripPosition")]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
A QuaternionControl required for backwards compatibility with the XRSDK layouts. This is the device orientation. For the VIVE Focus 3 device, this is both the device and the pointer rotation. This value is equivalent to mapping devicePose/rotation.
Declaration
[Preserve]
[InputControl(offset = 28, alias = "gripOrientation")]
public QuaternionControl deviceRotation { get; }
Property Value
Type | Description |
---|---|
QuaternionControl |
gripValue
A UnityEngine.InputSystem.Controls.AxisControl representing information from the
Declaration
[Preserve]
[InputControl(aliases = new string[] { "GripAxis" }, usage = "Grip")]
public AxisControl gripValue { get; }
Property Value
Type | Description |
---|---|
AxisControl |
isTracked
A ButtonControl required for backwards compatibility with the XRSDK layouts. This represents the overall tracking state of the device. This value is equivalent to mapping devicePose/isTracked.
Declaration
[Preserve]
[InputControl(offset = 8, usage = "IsTracked")]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
pointerPose
A UnityEngine.XR.OpenXR.Input.PoseControl representing the pointerPose OpenXR binding.
Declaration
[Preserve]
[InputControl(offset = 0, alias = "aimPose", usage = "Pointer")]
public PoseControl pointerPose { get; }
Property Value
Type | Description |
---|---|
PoseControl |
selectValue
A AxisControl that represents the selectValue OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "selectAxis, pinchStrength" }, usage = "Select")]
public AxisControl selectValue { get; }
Property Value
Type | Description |
---|---|
AxisControl |
trackingState
A IntegerControl required for backwards compatibility with the XRSDK layouts. This represents the bit flag set to indicate what data is valid. This value is equivalent to mapping devicePose/trackingState.
Declaration
[Preserve]
[InputControl(offset = 12, usage = "TrackingState")]
public IntegerControl trackingState { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
Methods
FinishSetup()
Internal call used to assign controls to the the correct element.
Declaration
protected override void FinishSetup()