Class InputSimulationService
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class InputSimulationService : BaseInputDeviceManager, IInputSimulationService, IMixedRealityEyeGazeDataProvider, IMixedRealityInputDeviceManager, IMixedRealityDataProvider, IMixedRealityService, IDisposable, IMixedRealityCapabilityCheck
Constructors
InputSimulationService(IMixedRealityServiceRegistrar, IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)
Declaration
public InputSimulationService(IMixedRealityServiceRegistrar registrar, IMixedRealityInputSystem inputSystem, string name, uint priority, BaseMixedRealityProfile profile)
Parameters
Type | Name | Description |
---|---|---|
IMixedRealityServiceRegistrar | registrar | |
IMixedRealityInputSystem | inputSystem | |
String | name | |
UInt32 | priority | |
BaseMixedRealityProfile | profile |
Properties
HandDataLeft
Pose data for the left hand.
Declaration
public SimulatedHandData HandDataLeft { get; }
Property Value
Type | Description |
---|---|
SimulatedHandData |
HandDataRight
Pose data for the right hand.
Declaration
public SimulatedHandData HandDataRight { get; }
Property Value
Type | Description |
---|---|
SimulatedHandData |
InputSimulationProfile
Typed representation of the ConfigurationProfile property.
Declaration
public MixedRealityInputSimulationProfile InputSimulationProfile { get; set; }
Property Value
Type | Description |
---|---|
MixedRealityInputSimulationProfile |
UserInputEnabled
If true then keyboard and mouse input are used to simulate hands.
Declaration
public bool UserInputEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
CheckCapability(MixedRealityCapability)
Checks to see if one or more registered data providers supports the requested capability on the current platform.
Declaration
public bool CheckCapability(MixedRealityCapability capability)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityCapability | capability | The capability to check. |
Returns
Type | Description |
---|---|
Boolean | True if the capability is supported, false otherwise. |
Destroy()
Declaration
public override void Destroy()
Overrides
Disable()
Optional Disable function to pause the service.
Declaration
public override void Disable()
Overrides
Enable()
Optional Enable function to enable / re-enable the service.
Declaration
public override void Enable()
Overrides
GetActiveControllers()
Retrieve all controllers currently registered with this device at runtime (if direct access is required)
Declaration
public override IMixedRealityController[] GetActiveControllers()
Returns
Type | Description |
---|---|
IMixedRealityController[] |
Overrides
GetHandDevice(Handedness)
Declaration
public SimulatedHand GetHandDevice(Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness |
Returns
Type | Description |
---|---|
SimulatedHand |
Initialize()
The initialize function is used to setup the service once created. This method is called once all services have been registered in the Mixed Reality Toolkit.
Declaration
public override void Initialize()
Overrides
LateUpdate()
Optional LateUpdate function to that is called after Update has been called on all services.
Declaration
public override void LateUpdate()
Overrides
Update()
Optional Update function to perform per-frame updates of the service.
Declaration
public override void Update()
Overrides
Explicit Interface Implementations
IMixedRealityEyeGazeDataProvider.SaccadeProvider
Declaration
IMixedRealityEyeSaccadeProvider IMixedRealityEyeGazeDataProvider.SaccadeProvider { get; }
Returns
Type | Description |
---|---|
IMixedRealityEyeSaccadeProvider |
IMixedRealityEyeGazeDataProvider.SmoothEyeTracking
Declaration
bool IMixedRealityEyeGazeDataProvider.SmoothEyeTracking { get; set; }
Returns
Type | Description |
---|---|
Boolean |