Class OpenXRTControllerDevice
Represents an XR tracked device in OpenXR.
Inherited Members
Namespace: Evergine.OpenXR.InputTracking
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRTControllerDevice : OpenXRTrackedDevice
Constructors
OpenXRTControllerDevice(OpenXRInputTracking, string, ulong, uint, XRHandedness)
Initializes a new instance of the OpenXRTControllerDevice class.
Declaration
public OpenXRTControllerDevice(OpenXRInputTracking inputTracking, string userPathName, ulong userPath, uint id, XRHandedness handedness = XRHandedness.Undefined)
Parameters
| Type | Name | Description |
|---|---|---|
| OpenXRInputTracking | inputTracking | The input tracking instance. |
| string | userPathName | The user path string. |
| ulong | userPath | The OpenXR user path resolved XRPath. |
| uint | id | The ID of this device. |
| XRHandedness | handedness | The handedness. |
Properties
DeviceType
Gets the type of the device.
Declaration
public override XRTrackedDeviceType DeviceType { get; }
Property Value
| Type | Description |
|---|---|
| XRTrackedDeviceType |
Overrides
Methods
GetControllerState(out XRControllerGenericState)
Gets the controller state if this device is a controller.
Declaration
public override bool GetControllerState(out XRControllerGenericState controllerState)
Parameters
| Type | Name | Description |
|---|---|---|
| XRControllerGenericState | controllerState | The controller state. |
Returns
| Type | Description |
|---|---|
| bool | False if the device is not a controller. |
Overrides
GetTrackingState(out XRTrackedDeviceState)
Gets the tracking state of this device.
Declaration
public override bool GetTrackingState(out XRTrackedDeviceState trackingState)
Parameters
| Type | Name | Description |
|---|---|---|
| XRTrackedDeviceState | trackingState | The tracking state. |
Returns
| Type | Description |
|---|---|
| bool | False if the device is not connected. |
Overrides
Update(long)
Updates this controller.
Declaration
public override void Update(long predictedDisplayTime)
Parameters
| Type | Name | Description |
|---|---|---|
| long | predictedDisplayTime | The predicted display time. |
Overrides
UpdateProfiles()
Updates the device profile.
Declaration
public override void UpdateProfiles()