Class OculusTouchControllerProfile.OculusTouchController
An Input System device based on the hand interaction profile in the Oculus Touch Controller.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Interactions
Syntax
[Preserve]
[InputControlLayout(displayName = "Oculus Touch Controller (OpenXR)", commonUsages = new string[]{"LeftHand", "RightHand"})]
public class OculusTouchController : XRControllerWithRumble
Properties
devicePose
A PoseControl that represents the grip OpenXR binding.
Declaration
[Preserve]
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 Oculus Touch device, this is both the grip and the pointer position. This value is equivalent to mapping devicePose/position.
Declaration
[Preserve]
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 Oculus Touch device, this is both the grip and the pointer rotation. This value is equivalent to mapping devicePose/rotation.
Declaration
[Preserve]
public QuaternionControl deviceRotation { get; }
Property Value
Type | Description |
---|---|
QuaternionControl |
grip
A AxisControl that represents the squeeze OpenXR binding.
Declaration
[Preserve]
public AxisControl grip { get; }
Property Value
Type | Description |
---|---|
AxisControl |
gripPressed
A ButtonControl that represents the squeeze OpenXR binding.
Declaration
[Preserve]
public ButtonControl gripPressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
haptic
A HapticControl that represents the haptic binding.
Declaration
[Preserve]
public HapticControl haptic { get; }
Property Value
Type | Description |
---|---|
HapticControl |
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]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
menu
A ButtonControl that represents the system menu OpenXR bindings, depending on handedness.
Declaration
[Preserve]
public ButtonControl menu { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
pointer
A PoseControl that represents the aim OpenXR binding.
Declaration
[Preserve]
public PoseControl pointer { get; }
Property Value
Type | Description |
---|---|
PoseControl |
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]
public Vector3Control pointerPosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
pointerRotation
A QuaternionControl required for backwards compatibility with the XRSDK layouts. This is the pointer rotation. This value is equivalent to mapping pointerPose/rotation.
Declaration
[Preserve]
public QuaternionControl pointerRotation { get; }
Property Value
Type | Description |
---|---|
QuaternionControl |
primaryButton
A ButtonControl that represents the buttonA buttonX OpenXR bindings, depending on handedness.
Declaration
[Preserve]
public ButtonControl primaryButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
primaryTouched
A ButtonControl that represents the buttonATouch buttonYTouch OpenXR bindings, depending on handedness.
Declaration
[Preserve]
public ButtonControl primaryTouched { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
secondaryButton
A ButtonControl that represents the buttonB buttonY OpenXR bindings, depending on handedness.
Declaration
[Preserve]
public ButtonControl secondaryButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
secondaryTouched
A ButtonControl that represents the buttonBTouch buttonYTouch OpenXR bindings, depending on handedness.
Declaration
[Preserve]
public ButtonControl secondaryTouched { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
thumbstick
A Vector2Control that represents the thumbstick OpenXR binding.
Declaration
[Preserve]
public Vector2Control thumbstick { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
thumbstickClicked
A ButtonControl that represents the thumbstickClick OpenXR binding.
Declaration
[Preserve]
public ButtonControl thumbstickClicked { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
thumbstickTouched
A ButtonControl that represents the thumbstickTouch OpenXR binding.
Declaration
[Preserve]
public ButtonControl thumbstickTouched { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
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]
public IntegerControl trackingState { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
trigger
A AxisControl that represents the trigger OpenXR binding.
Declaration
[Preserve]
public AxisControl trigger { get; }
Property Value
Type | Description |
---|---|
AxisControl |
triggerPressed
A ButtonControl that represents the trigger OpenXR binding.
Declaration
[Preserve]
public ButtonControl triggerPressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
triggerTouched
A ButtonControl that represents the triggerTouch OpenXR binding.
Declaration
[Preserve]
public ButtonControl triggerTouched { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
Methods
FinishSetup()
Internal call used to assign controls to the the correct element.
Declaration
protected override void FinishSetup()