Class InputSimulationService
Inheritance
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class InputSimulationService : BaseInputSimulationService, 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 |
HandPositionLeft
Position of the left hand in view space.
Declaration
public Vector3 HandPositionLeft { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
HandPositionRight
Position of the right hand in view space.
Declaration
public Vector3 HandPositionRight { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
HandRotationLeft
Rotation euler angles of the left hand in view space.
Declaration
public Vector3 HandRotationLeft { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
HandRotationRight
Rotation euler angles of the right hand in view space.
Declaration
public Vector3 HandRotationRight { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
HandSimulationMode
Simulated hand behavior.
Declaration
public HandSimulationMode HandSimulationMode { get; set; }
Property Value
Type | Description |
---|---|
HandSimulationMode |
InputSimulationProfile
Typed representation of the ConfigurationProfile property.
Declaration
public MixedRealityInputSimulationProfile InputSimulationProfile { get; set; }
Property Value
Type | Description |
---|---|
MixedRealityInputSimulationProfile |
IsAlwaysVisibleHandLeft
The left hand is always tracking.
Declaration
public bool IsAlwaysVisibleHandLeft { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsAlwaysVisibleHandRight
The right hand is always tracking.
Declaration
public bool IsAlwaysVisibleHandRight { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsSimulatingHandLeft
The left hand is controlled by user input.
Declaration
public bool IsSimulatingHandLeft { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsSimulatingHandRight
The right hand is controlled by user input.
Declaration
public bool IsSimulatingHandRight { get; }
Property Value
Type | Description |
---|---|
Boolean |
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()
Optional Destroy function to perform cleanup of the service before the Mixed Reality Toolkit is destroyed.
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
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
ResetHandLeft()
Reset the left hand.
Declaration
public void ResetHandLeft()
ResetHandRight()
Reset the right hand.
Declaration
public void ResetHandRight()
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 |