Class OpenVRInputTracking
OpenVR service.
Implements
Inherited Members
Namespace: Evergine.OpenVR .InputTracking
Assembly: Evergine.OpenVR.dll
Syntax
public class OpenVRInputTracking : XRInputTracking, IDisposable
Constructors
OpenVRInputTracking(OpenVRPlatform)
Initializes a new instance of the Open
Declaration
public OpenVRInputTracking(OpenVRPlatform xrPlatform)
Parameters
Type | Name | Description |
---|---|---|
Open |
xrPlatform | XR Platform. |
Fields
RenderPoses
Render Pose array.
Declaration
public TrackedDevicePose_t[] RenderPoses
Field Value
Type | Description |
---|---|
Tracked |
TrackedDevices
Traceked devices array.
Declaration
public OpenVRTrackedDevice[] TrackedDevices
Field Value
Type | Description |
---|---|
Open |
Methods
GetDeviceByHandedness(XRHandedness, uint)
Gets device by handedness.
Declaration
public override XRTrackedDevice GetDeviceByHandedness(XRHandedness controllerHandeness, uint count = 0)
Parameters
Type | Name | Description |
---|---|---|
XRHandedness | controllerHandeness | |
uint | count | Device count. |
Returns
Type | Description |
---|---|
XRTracked |
Tracked device. |
Overrides
GetDeviceByIndex(uint)
Gets device by index.
Declaration
public override XRTrackedDevice GetDeviceByIndex(uint deviceIndex)
Parameters
Type | Name | Description |
---|---|---|
uint | deviceIndex | Device index. |
Returns
Type | Description |
---|---|
XRTracked |
Tracked device. |
Overrides
GetDeviceByType(XRTrackedDeviceType, uint)
Gets device by type.
Declaration
public override XRTrackedDevice GetDeviceByType(XRTrackedDeviceType type, uint count)
Parameters
Type | Name | Description |
---|---|---|
XRTracked |
type | Device type. |
uint | count | Device count. |
Returns
Type | Description |
---|---|
XRTracked |
Tacked device. |
Overrides
GetDeviceByTypeAndHandedness(XRTrackedDeviceType, XRHandedness, uint)
Gets device specifying its type and handedness.
Declaration
public override XRTrackedDevice GetDeviceByTypeAndHandedness(XRTrackedDeviceType type, XRHandedness controllerHandeness, uint count = 0)
Parameters
Type | Name | Description |
---|---|---|
XRTracked |
type | Device type. |
XRHandedness | controllerHandeness | |
uint | count | Device count. |
Returns
Type | Description |
---|---|
XRTracked |
Tracked device. |
Overrides
Initialize()
Initialize this instance.
Declaration
public override void Initialize()