Class HTCViveControllerProfile.ViveController
An Input System device based off the HTC Vive Controller.
Inheritance
Inherited Members
Namespace: UnityEngine .XR.OpenXR .Features.Interactions
Assembly: Unity.XR.OpenXR.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "HTC Vive Controller (OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" })]
public class HTCViveControllerProfile.ViveController : XRControllerWithRumble
Properties
devicePose
A Pose
Declaration
[Preserve]
[InputControl(offset = 0, aliases = new string[] { "device", "gripPose" }, usage = "Device")]
public PoseControl devicePose { get; }
Property Value
Type | Description |
---|---|
Pose |
devicePosition
A Vector3Control required for back compatibility with the XRSDK layouts. This is the device position. For the Oculus Touch device, this is both the grip and the pointer position. This value is equivalent to mapping devicePose/position.
Declaration
[Preserve]
[InputControl(offset = 32, alias = "gripPosition")]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 44, alias = "gripOrientation")]
public QuaternionControl deviceRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
grip
A Axis
Declaration
[Preserve]
[InputControl(aliases = new string[] { "GripAxis", "squeeze" }, usage = "Grip")]
public AxisControl grip { get; }
Property Value
Type | Description |
---|---|
Axis |
gripPressed
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "GripButton", "squeezeClicked" }, usage = "GripButton")]
public ButtonControl gripPressed { get; }
Property Value
Type | Description |
---|---|
Button |
haptic
A Haptic
Declaration
[Preserve]
[InputControl(usage = "Haptic")]
public HapticControl haptic { get; }
Property Value
Type | Description |
---|---|
Haptic |
isTracked
A Button
Declaration
[Preserve]
[InputControl(offset = 26)]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
Button |
menu
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Primary", "menubutton" }, usage = "MenuButton")]
public ButtonControl menu { get; }
Property Value
Type | Description |
---|---|
Button |
pointer
A Pose
Declaration
[Preserve]
[InputControl(offset = 0, alias = "aimPose", usage = "Pointer")]
public PoseControl pointer { get; }
Property Value
Type | Description |
---|---|
Pose |
pointerPosition
A Vector3Control required for back compatibility with the XRSDK layouts. This is the pointer position. This value is equivalent to mapping pointerPose/position.
Declaration
[Preserve]
[InputControl(offset = 92)]
public Vector3Control pointerPosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
pointerRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 104, alias = "pointerOrientation")]
public QuaternionControl pointerRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
select
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Secondary", "selectbutton" }, usage = "SystemButton")]
public ButtonControl select { get; }
Property Value
Type | Description |
---|---|
Button |
trackingState
A Integer
Declaration
[Preserve]
[InputControl(offset = 28)]
public IntegerControl trackingState { get; }
Property Value
Type | Description |
---|---|
Integer |
trackpad
A Vector2Control/Stick
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Primary2DAxis", "touchpadaxes", "touchpad" }, usage = "Primary2DAxis")]
public Vector2Control trackpad { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
trackpadClicked
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "joystickorpadpressed", "touchpadpressed" }, usage = "Primary2DAxisClick")]
public ButtonControl trackpadClicked { get; }
Property Value
Type | Description |
---|---|
Button |
trackpadTouched
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "joystickorpadtouched", "touchpadtouched" }, usage = "Primary2DAxisTouch")]
public ButtonControl trackpadTouched { get; }
Property Value
Type | Description |
---|---|
Button |
trigger
A Axis
Declaration
[Preserve]
[InputControl(alias = "triggeraxis", usage = "Trigger")]
public AxisControl trigger { get; }
Property Value
Type | Description |
---|---|
Axis |
triggerPressed
A Button
Declaration
[Preserve]
[InputControl(alias = "triggerbutton", usage = "TriggerButton")]
public ButtonControl triggerPressed { get; }
Property Value
Type | Description |
---|---|
Button |
Methods
FinishSetup()
OpenXR Input System device
Declaration
protected override void FinishSetup()