Class OpenVRTrackedDevice
OpenVR service.
Implements
Inherited Members
Namespace: Evergine.OpenVR.InputTracking
Assembly: Evergine.OpenVR.dll
Syntax
public class OpenVRTrackedDevice : XRTrackedDevice, IDisposable
  Properties
DeviceType
Gets the device type.
Declaration
public override XRTrackedDeviceType DeviceType { get; }
  Property Value
| Type | Description | 
|---|---|
| XRTrackedDeviceType | 
Overrides
Name
Gets the device name.
Declaration
public override string Name { get; }
  Property Value
| Type | Description | 
|---|---|
| string | 
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.  |