Class OpenXRDeviceManager
Inheritance
OpenXRDeviceManager
Assembly: cs.temp.dll.dll
[MixedRealityDataProvider(typeof(IMixedRealityInputSystem), null, "OpenXR XRSDK Device Manager")]
public class OpenXRDeviceManager : XRSDKDeviceManager
Constructors
Declaration
public OpenXRDeviceManager(IMixedRealityInputSystem inputSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type |
Name |
Description |
IMixedRealityInputSystem |
inputSystem |
The IMixedRealityInputSystem instance that receives data from this provider.
|
String |
name |
Friendly name of the service.
|
UInt32 |
priority |
Service priority. Used to determine order of instantiation.
|
BaseMixedRealityProfile |
profile |
The service's configuration profile.
|
Methods
Declaration
protected override Type GetControllerType(SupportedControllerType supportedControllerType)
Parameters
Type |
Name |
Description |
SupportedControllerType |
supportedControllerType |
|
Returns
Declaration
protected override SupportedControllerType GetCurrentControllerType(InputDevice inputDevice)
Parameters
Type |
Name |
Description |
InputDevice |
inputDevice |
|
Returns
Type |
Description |
SupportedControllerType |
|
Declaration
protected override InputSourceType GetInputSourceType(SupportedControllerType supportedControllerType)
Parameters
Type |
Name |
Description |
SupportedControllerType |
supportedControllerType |
|
Returns
Type |
Description |
InputSourceType |
|
The OpenXR plug-in uses extensions to expose all possible data, which might be surfaced through multiple input devices.
This method is overridden to account for multiple input devices and reuse MRTK controllers if a match is found.
Declaration
protected override GenericXRSDKController GetOrAddController(InputDevice inputDevice)
Parameters
Type |
Name |
Description |
InputDevice |
inputDevice |
|
Returns
Type |
Description |
GenericXRSDKController |
|
The OpenXR plug-in uses extensions to expose all possible data, which might be surfaced through multiple input devices.
This method is overridden to account for multiple input devices and reuse MRTK controllers if a match is found.
Declaration
protected override void RemoveController(InputDevice inputDevice)
Parameters
Type |
Name |
Description |
InputDevice |
inputDevice |
|