Class VIVECosmosProfile.ViveCosmosController
An Input System device based on the
Inheritance
Inherited Members
Namespace: VIVE.OpenXR
Assembly: VIVE.OpenXR.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "VIVE Cosmos Controller (OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" })]
public class VIVECosmosProfile.ViveCosmosController : XRControllerWithRumble
Properties
devicePose
A UnityEngine.XR.OpenXR.Input.PoseControl representing information from the grip OpenXR binding.
Declaration
[Preserve]
[InputControl(offset = 0, alias = "device")]
public PoseControl devicePose { get; }
Property Value
Type | Description |
---|---|
PoseControl |
devicePosition
A UnityEngine.InputSystem.Controls.Vector3Control required for back compatibility with the XRSDK layouts. this is the device position, or grip position. this value is equivalent to mapping devicePose/position
Declaration
[Preserve]
[InputControl(offset = 36, aliases = new string[] { "gripPosition" })]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
A UnityEngine.InputSystem.Controls.QuaternionControl required for back compatibility with the XRSDK layouts. this is the device orientation, or grip orientation. this value is equivalent to mapping devicePose/rotation
Declaration
[Preserve]
[InputControl(offset = 48, aliases = new string[] { "gripOrientation", "gripRotation" })]
public QuaternionControl deviceRotation { get; }
Property Value
Type | Description |
---|---|
QuaternionControl |
grip
A UnityEngine.InputSystem.Controls.AxisControl representing information from the squeeze OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "GripAxis" })]
public AxisControl grip { get; }
Property Value
Type | Description |
---|---|
AxisControl |
gripPressed
A UnityEngine.InputSystem.Controls.ButtonControl representing information from the squeeze OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "GripButton" })]
public ButtonControl gripPressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
haptic
A UnityEngine.XR.OpenXR.Input.HapticControl that represents the haptic binding.
Declaration
[Preserve]
[InputControl(usage = "Haptic")]
public HapticControl haptic { get; }
Property Value
Type | Description |
---|---|
HapticControl |
isTracked
A UnityEngine.InputSystem.Controls.ButtonControl required for back 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 = 28)]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
joystick
A UnityEngine.InputSystem.Controls.Vector2Control representing information from the thumbstick OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Primary2DAxis", "joystickaxes" })]
public Vector2Control joystick { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
joystickClicked
A UnityEngine.InputSystem.Controls.ButtonControl representing information from the thumbstickClick OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "joystickorpadpressed", "joystickpressed" })]
public ButtonControl joystickClicked { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
joystickTouched
A UnityEngine.InputSystem.Controls.ButtonControl representing information from the thumbstickTouch OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "joystickorpadtouched", "joysticktouched" })]
public ButtonControl joystickTouched { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
menu
A UnityEngine.InputSystem.Controls.ButtonControl representing information from the menu OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Primary", "menubutton" })]
public ButtonControl menu { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
pointer
A UnityEngine.XR.OpenXR.Input.PoseControl representing information from the aim OpenXR binding.
Declaration
[Preserve]
[InputControl(offset = 0)]
public PoseControl pointer { get; }
Property Value
Type | Description |
---|---|
PoseControl |
pointerPosition
A UnityEngine.InputSystem.Controls.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 UnityEngine.InputSystem.Controls.QuaternionControl required for back compatibility with the XRSDK layouts. this is the pointer rotation. this value is equivalent to mapping pointerPose/rotation
Declaration
[Preserve]
[InputControl(offset = 108, aliases = new string[] { "pointerOrientation" })]
public QuaternionControl pointerRotation { get; }
Property Value
Type | Description |
---|---|
QuaternionControl |
primaryButton
A UnityEngine.InputSystem.Controls.ButtonControl representing the a x OpenXR bindings, depending on handedness.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "A", "X" })]
public ButtonControl primaryButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
secondaryButton
A UnityEngine.InputSystem.Controls.ButtonControl representing the b y OpenXR bindings, depending on handedness.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "B", "Y" })]
public ButtonControl secondaryButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
shoulderPressed
A UnityEngine.InputSystem.Controls.ButtonControl representing information from the shoulder OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "ShoulderButton" })]
public ButtonControl shoulderPressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
trackingState
A UnityEngine.InputSystem.Controls.IntegerControl required for back compatibility with the XRSDK layouts. this represents the bit flag set indicating what data is valid. this value is equivalent to mapping devicePose/trackingState
Declaration
[Preserve]
[InputControl(offset = 32)]
public IntegerControl trackingState { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
trigger
A UnityEngine.InputSystem.Controls.AxisControl representing information from the trigger OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "triggeraxis" })]
public AxisControl trigger { get; }
Property Value
Type | Description |
---|---|
AxisControl |
triggerPressed
A UnityEngine.InputSystem.Controls.ButtonControl representing information from the triggerClick OpenXR binding.
Declaration
[Preserve]
[InputControl(aliases = new string[] { "triggerbutton" })]
public ButtonControl triggerPressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
Methods
FinishSetup()
Declaration
protected override void FinishSetup()