Class XRInputTracking
Manager of XR tracking devices.
Inherited Members
Namespace: Evergine.Framework.XR.TrackedDevices
Assembly: Evergine.Framework.dll
Syntax
public abstract class XRInputTracking : DisposableObject
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
FireOnDeviceAdded(XRTrackedDevice)
Subscribes to the OnDeviceRemoved event.
Declaration
protected void FireOnDeviceAdded(XRTrackedDevice device)
Parameters
Type | Name | Description |
---|---|---|
XRTrackedDevice | device | Tracked device. |
FireOnDeviceRemoved(XRTrackedDevice)
Removes the OnDeviceRemoved event subscription.
Declaration
protected void FireOnDeviceRemoved(XRTrackedDevice device)
Parameters
Type | Name | Description |
---|---|---|
XRTrackedDevice | device | Tracked device. |
GetDeviceByHandedness(XRHandedness, uint)
Gets device by handedness.
Declaration
public abstract 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. |
GetDeviceByIndex(uint)
Gets the device by index.
Declaration
public abstract XRTrackedDevice GetDeviceByIndex(uint deviceIndex)
Parameters
Type | Name | Description |
---|---|---|
uint | deviceIndex | The device index. |
Returns
Type | Description |
---|---|
XRTrackedDevice | The tracked device. |
GetDeviceByType(XRTrackedDeviceType, uint)
Gets device by type.
Declaration
public abstract 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. |
GetDeviceByTypeAndHandedness(XRTrackedDeviceType, XRHandedness, uint)
Gets the device specifying its type and handedness.
Declaration
public abstract 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. |
Initialize()
Initializes this instance.
Declaration
public abstract void Initialize()
Events
OnDeviceAdded
Event raised when a device is added.
Declaration
public event XRInputTracking.OnDeviceHandler OnDeviceAdded
Event Type
Type | Description |
---|---|
XRInputTracking.OnDeviceHandler |
OnDeviceRemoved
Event raised when a device is removed.
Declaration
public event XRInputTracking.OnDeviceHandler OnDeviceRemoved
Event Type
Type | Description |
---|---|
XRInputTracking.OnDeviceHandler |