Class HPReverbG2ControllerProfile.ReverbG2Controller
An Input System device based off the HP Reverb G2 Controller.
Inheritance
Inherited Members
Namespace: UnityEngine .XR.OpenXR .Features.Interactions
Assembly: Unity.XR.OpenXR.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "HP Reverb G2 Controller (OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" })]
public class HPReverbG2ControllerProfile.ReverbG2Controller : 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. This is both the grip and the pointer position. This value is equivalent to mapping devicePose/position.
Declaration
[Preserve]
[InputControl(offset = 36, alias = "gripPosition")]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 48, 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 = 29)]
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 = 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 |
secondaryButton
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "B", "Y", "buttonB", "buttonY" }, usage = "SecondaryButton")]
public ButtonControl secondaryButton { 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 |
trackingState
A Integer
Declaration
[Preserve]
[InputControl(offset = 32)]
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 |
triggerPressed
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "indexButton", "indexTouched", "triggerbutton" }, usage = "TriggerButton")]
public ButtonControl triggerPressed { get; }
Property Value
Type | Description |
---|---|
Button |
Methods
FinishSetup()
OpenXR Input System device
Declaration
protected override void FinishSetup()