Class MetaQuestTouchProControllerProfile.QuestProTouchController
An Input System device based on the controller interaction profile Meta Touch Controller Pro.
Inheritance
Inherited Members
Namespace: UnityEngine .XR.OpenXR .Features.Interactions
Assembly: Unity.XR.OpenXR.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "Meta Quest Pro Touch Controller(OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" })]
public class MetaQuestTouchProControllerProfile.QuestProTouchController : 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 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]
[InputControl(offset = 36, noisy = true, alias = "gripPosition")]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 48, noisy = true, 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 |
hapticThumb
A Haptic
Declaration
[Preserve]
[InputControl(usage = "HapticThumb")]
public HapticControl hapticThumb { get; }
Property Value
Type | Description |
---|---|
Haptic |
hapticTrigger
A Haptic
Declaration
[Preserve]
[InputControl(usage = "HapticTrigger")]
public HapticControl hapticTrigger { get; }
Property Value
Type | Description |
---|---|
Haptic |
isTracked
A Button
Declaration
[Preserve]
[InputControl(offset = 28, usage = "IsTracked")]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
Button |
menu
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Primary", "menuButton", "systemButton" }, 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 = 96)]
public Vector3Control pointerPosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
pointerRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 108, alias = "pointerOrientation")]
public QuaternionControl pointerRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
primaryButton
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "A", "X", "buttonA", "buttonX" }, usage = "PrimaryButton")]
public ButtonControl primaryButton { get; }
Property Value
Type | Description |
---|---|
Button |
primaryTouched
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "ATouched", "XTouched", "ATouch", "XTouch", "buttonATouched", "buttonXTouched" }, usage = "PrimaryTouch")]
public ButtonControl primaryTouched { get; }
Property Value
Type | Description |
---|---|
Button |
secondaryButton
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "B", "Y", "buttonB", "buttonY" }, usage = "SecondaryButton")]
public ButtonControl secondaryButton { get; }
Property Value
Type | Description |
---|---|
Button |
secondaryTouched
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "BTouched", "YTouched", "BTouch", "YTouch", "buttonBTouched", "buttonYTouched" }, usage = "SecondaryTouch")]
public ButtonControl secondaryTouched { get; }
Property Value
Type | Description |
---|---|
Button |
stylusForce
A Axis
Declaration
[Preserve]
[InputControl(usage = "StylusForce")]
public AxisControl stylusForce { get; }
Property Value
Type | Description |
---|---|
Axis |
thumbProximity
A Button
Declaration
[Preserve]
[InputControl(usage = "ThumbProximity")]
public ButtonControl thumbProximity { get; }
Property Value
Type | Description |
---|---|
Button |
thumbrestForce
A Axis
Declaration
[Preserve]
[InputControl(usage = "ThumbrestForce")]
public AxisControl thumbrestForce { get; }
Property Value
Type | Description |
---|---|
Axis |
thumbrestTouched
A Button
Declaration
[Preserve]
[InputControl(usage = "ThumbrestTouch")]
public ButtonControl thumbrestTouched { get; }
Property Value
Type | Description |
---|---|
Button |
thumbstick
A Vector2Control/Stick
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Primary2DAxis", "Joystick" }, usage = "Primary2DAxis")]
public Vector2Control thumbstick { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
thumbstickClicked
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "JoystickOrPadPressed", "thumbstickClick", "joystickClicked" }, usage = "Primary2DAxisClick")]
public ButtonControl thumbstickClicked { get; }
Property Value
Type | Description |
---|---|
Button |
thumbstickTouched
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "JoystickOrPadTouched", "thumbstickTouch", "joystickTouched" }, usage = "Primary2DAxisTouch")]
public ButtonControl thumbstickTouched { get; }
Property Value
Type | Description |
---|---|
Button |
trackingState
A Integer
Declaration
[Preserve]
[InputControl(offset = 32, usage = "TrackingState")]
public IntegerControl trackingState { get; }
Property Value
Type | Description |
---|---|
Integer |
trigger
A Axis
Declaration
[Preserve]
[InputControl(usage = "Trigger")]
public AxisControl trigger { get; }
Property Value
Type | Description |
---|---|
Axis |
triggerCurl
A Axis
Declaration
[Preserve]
[InputControl(usage = "TriggerCurl")]
public AxisControl triggerCurl { get; }
Property Value
Type | Description |
---|---|
Axis |
triggerPressed
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "indexButton", "indexTouched", "triggerbutton" }, usage = "TriggerButton")]
public ButtonControl triggerPressed { get; }
Property Value
Type | Description |
---|---|
Button |
triggerProximity
A Button
Declaration
[Preserve]
[InputControl(usage = "TriggerProximity")]
public ButtonControl triggerProximity { get; }
Property Value
Type | Description |
---|---|
Button |
triggerSlide
A Axis
Declaration
[Preserve]
[InputControl(usage = "TriggerSlide")]
public AxisControl triggerSlide { get; }
Property Value
Type | Description |
---|---|
Axis |
triggerTouched
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "indexTouch", "indexNearTouched" }, usage = "TriggerTouch")]
public ButtonControl triggerTouched { get; }
Property Value
Type | Description |
---|---|
Button |
Methods
FinishSetup()
Internal call used to assign controls to the the correct element.
Declaration
protected override void FinishSetup()