Class MicrosoftMotionControllerProfile.WMRSpatialController
An Input System device based off the Microsoft Mixed Reality Motion Controller.
Inheritance
Inherited Members
Namespace: UnityEngine .XR.OpenXR .Features.Interactions
Assembly: Unity.XR.OpenXR.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "Windows MR Controller (OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" })]
public class MicrosoftMotionControllerProfile.WMRSpatialController : 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, or grip position. This value is equivalent to mapping devicePose/position.
Declaration
[Preserve]
[InputControl(offset = 40, aliases = new string[] { "gripPosition" })]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 52, aliases = new string[] { "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 = 32)]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
Button |
joystick
A Vector2Control/Stick
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Primary2DAxis", "thumbstickaxes", "thumbstick" }, usage = "Primary2DAxis")]
public Vector2Control joystick { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
joystickClicked
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "joystickClicked", "thumbstickpressed" }, usage = "Primary2DAxisClick")]
public ButtonControl joystickClicked { 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, aliases = new string[] { "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 = 100)]
public Vector3Control pointerPosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
pointerRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 112, aliases = new string[] { "pointerOrientation" })]
public QuaternionControl pointerRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
touchpad
A Vector2Control/Stick
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Secondary2DAxis", "touchpadaxes", "trackpad" }, usage = "Secondary2DAxis")]
public Vector2Control touchpad { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
touchpadClicked
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "joystickorpadpressed", "touchpadpressed", "trackpadClicked" }, usage = "Secondary2DAxisClick")]
public ButtonControl touchpadClicked { get; }
Property Value
Type | Description |
---|---|
Button |
touchpadTouched
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "joystickorpadtouched", "touchpadtouched", "trackpadTouched" }, usage = "Secondary2DAxisTouch")]
public ButtonControl touchpadTouched { get; }
Property Value
Type | Description |
---|---|
Button |
trackingState
A Integer
Declaration
[Preserve]
[InputControl(offset = 36)]
public IntegerControl trackingState { get; }
Property Value
Type | Description |
---|---|
Integer |
trigger
A Axis
Declaration
[Preserve]
[InputControl(aliases = new string[] { "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()
Internal call used to assign controls to the the correct element.
Declaration
protected override void FinishSetup()