Class OpenXRInputTracking
Input tracking implementation using OpenXR.
Inherited Members
Namespace: Evergine.OpenXR.InputTracking
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRInputTracking : XRInputTracking
Constructors
OpenXRInputTracking(OpenXRPlatform)
Initializes a new instance of the OpenXRInputTracking class.
Declaration
public OpenXRInputTracking(OpenXRPlatform openXRPlatform)
Parameters
Type | Name | Description |
---|---|---|
OpenXRPlatform | openXRPlatform | The OpenXR platform. |
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
GetDeviceByHandedness(XRHandedness, uint)
Gets device by handedness.
Declaration
public override XRTrackedDevice GetDeviceByHandedness(XRHandedness handedness, uint count = 0)
Parameters
Type | Name | Description |
---|---|---|
XRHandedness | handedness | The role of the device. |
uint | count | The number of devices. |
Returns
Type | Description |
---|---|
XRTrackedDevice | A tracked device. |
Overrides
GetDeviceByIndex(uint)
Gets the device by index.
Declaration
public override XRTrackedDevice GetDeviceByIndex(uint deviceIndex)
Parameters
Type | Name | Description |
---|---|---|
uint | deviceIndex | The device index. |
Returns
Type | Description |
---|---|
XRTrackedDevice | The tracked device. |
Overrides
GetDeviceByType(XRTrackedDeviceType, uint)
Gets device by type.
Declaration
public override XRTrackedDevice GetDeviceByType(XRTrackedDeviceType type, uint count = 0)
Parameters
Type | Name | Description |
---|---|---|
XRTrackedDeviceType | type | Device type. |
uint | count | Device count. |
Returns
Type | Description |
---|---|
XRTrackedDevice | Tracked device. |
Overrides
GetDeviceByTypeAndHandedness(XRTrackedDeviceType, XRHandedness, uint)
Gets the device specifying its type and handedness.
Declaration
public override XRTrackedDevice GetDeviceByTypeAndHandedness(XRTrackedDeviceType type, XRHandedness handedness, uint count = 0)
Parameters
Type | Name | Description |
---|---|---|
XRTrackedDeviceType | type | Device type. |
XRHandedness | handedness | Device role. |
uint | count | Device count. |
Returns
Type | Description |
---|---|
XRTrackedDevice | Tracked device. |
Overrides
Initialize()
Initializes this instance.
Declaration
public override void Initialize()
Overrides
UpdateProfiles()
Updates input profiles.
Declaration
public void UpdateProfiles()