Class OpenXRTrackedDevice
Represent an XR Tracked device in OpenXR.
Inheritance
OpenXRTrackedDevice
Inherited Members
Namespace: Evergine.OpenXR.InputTracking
Assembly: Evergine.OpenXR.dll
Syntax
public abstract class OpenXRTrackedDevice : XRTrackedDevice
Constructors
OpenXRTrackedDevice(OpenXRInputTracking, string, uint, XRHandedness)
Initializes a new instance of the OpenXRTrackedDevice class.
Declaration
public OpenXRTrackedDevice(OpenXRInputTracking inputTracking, string userPathName, uint id, XRHandedness handedness = XRHandedness.Undefined)
Parameters
Type | Name | Description |
---|---|---|
OpenXRInputTracking | inputTracking | The input tracking instance. |
string | userPathName | The user path string. |
uint | id | The ID of this device. |
XRHandedness | handedness | The handedness. |
Properties
Name
Gets the device name.
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
SupportedHandJointKind
Gets the supported joints by this controller.
Declaration
public override XRHandJointKind[] SupportedHandJointKind { get; }
Property Value
Type | Description |
---|---|
XRHandJointKind[] |
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 this 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 |
Returns
Type | Description |
---|---|
bool | False if the device is not connected. |
Overrides
TryGetRenderableModelAsync()
Gets a renderable model for this tracked device.
Declaration
public override Task<XRRenderableModelInfo> TryGetRenderableModelAsync()
Returns
Type | Description |
---|---|
Task<XRRenderableModelInfo> | An awaitable task that returns the entity that contains the renderable model. |
Overrides
Update(long)
Update this controller.
Declaration
public abstract void Update(long predictedDisplayTime)
Parameters
Type | Name | Description |
---|---|---|
long | predictedDisplayTime | The predicted display time. |
UpdateProfiles()
Update the device profile.
Declaration
public abstract void UpdateProfiles()