Class BaseInputSimulationService
Base class for services that create simulated input devices.
Inheritance
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public abstract class BaseInputSimulationService : BaseInputDeviceManager, IMixedRealityInputDeviceManager, IMixedRealityDataProvider, IMixedRealityService, IDisposable
Constructors
BaseInputSimulationService(IMixedRealityServiceRegistrar, IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
[Obsolete("This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.")]
protected BaseInputSimulationService(IMixedRealityServiceRegistrar registrar, IMixedRealityInputSystem inputSystem, string name, uint priority, BaseMixedRealityProfile profile)
Parameters
Type | Name | Description |
---|---|---|
IMixed |
registrar | The IMixed |
IMixed |
inputSystem | The IMixed |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
Base |
profile | The service's configuration profile. |
BaseInputSimulationService(IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
protected BaseInputSimulationService(IMixedRealityInputSystem inputSystem, string name, uint priority, BaseMixedRealityProfile profile)
Parameters
Type | Name | Description |
---|---|---|
IMixed |
inputSystem | The IMixed |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
Base |
profile | The service's configuration profile. |
Methods
GetActiveControllers()
Retrieve all controllers currently registered with this device at runtime (if direct access is required)
Declaration
public override IMixedRealityController[] GetActiveControllers()
Returns
Type | Description |
---|---|
IMixed |
Overrides
GetHandDevice(Handedness)
Declaration
public SimulatedHand GetHandDevice(Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness |
Returns
Type | Description |
---|---|
Simulated |
GetOrAddHandDevice(Handedness, HandSimulationMode)
Declaration
protected SimulatedHand GetOrAddHandDevice(Handedness handedness, HandSimulationMode simulationMode)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | |
Hand |
simulationMode |
Returns
Type | Description |
---|---|
Simulated |
RemoveAllHandDevices()
Declaration
protected void RemoveAllHandDevices()
RemoveHandDevice(Handedness)
Declaration
protected void RemoveHandDevice(Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness |
UpdateHandDevice(HandSimulationMode, Handedness, SimulatedHandData)
Declaration
protected void UpdateHandDevice(HandSimulationMode simulationMode, Handedness handedness, SimulatedHandData handData)
Parameters
Type | Name | Description |
---|---|---|
Hand |
simulationMode | |
Handedness | handedness | |
Simulated |
handData |