Class MixedRealityInputSystem
Inheritance
MixedRealityInputSystem
Assembly: cs.temp.dll.dll
public class MixedRealityInputSystem : BaseDataProviderAccessCoreSystem, IMixedRealityDataProviderAccess, IMixedRealityInputSystem, IMixedRealityEventSystem, IMixedRealityService, IDisposable, IMixedRealityCapabilityCheck
Constructors
Declaration
public MixedRealityInputSystem(IMixedRealityServiceRegistrar registrar, MixedRealityInputSystemProfile profile)
Parameters
Declaration
public MixedRealityInputSystem(IMixedRealityServiceRegistrar registrar, MixedRealityInputSystemProfile profile)
Parameters
Declaration
public MixedRealityInputSystem(MixedRealityInputSystemProfile profile)
Parameters
Declaration
public MixedRealityInputSystem(MixedRealityInputSystemProfile profile)
Parameters
Properties
Declaration
public HashSet<IMixedRealityController> DetectedControllers { get; }
Property Value
Declaration
public HashSet<IMixedRealityController> DetectedControllers { get; }
Property Value
Declaration
public HashSet<IMixedRealityInputSource> DetectedInputSources { get; }
Property Value
Declaration
public HashSet<IMixedRealityInputSource> DetectedInputSources { get; }
Property Value
Declaration
public IMixedRealityEyeGazeProvider EyeGazeProvider { get; }
Property Value
Declaration
public IMixedRealityEyeGazeProvider EyeGazeProvider { get; }
Property Value
Declaration
public IMixedRealityFocusProvider FocusProvider { get; }
Property Value
Declaration
public IMixedRealityFocusProvider FocusProvider { get; }
Property Value
Declaration
public IMixedRealityGazeProvider GazeProvider { get; }
Property Value
Declaration
public IMixedRealityGazeProvider GazeProvider { get; }
Property Value
Declaration
public MixedRealityInputSystemProfile InputSystemProfile { get; }
Property Value
Declaration
public MixedRealityInputSystemProfile InputSystemProfile { get; }
Property Value
Declaration
public bool IsInputEnabled { get; }
Property Value
Declaration
public bool IsInputEnabled { get; }
Property Value
Declaration
public override string Name { get; protected set; }
Property Value
Overrides
Declaration
public override string Name { get; protected set; }
Property Value
Overrides
Declaration
public override uint Priority { get; }
Property Value
Overrides
Declaration
public override uint Priority { get; }
Property Value
Overrides
Declaration
public IMixedRealityRaycastProvider RaycastProvider { get; }
Property Value
Declaration
public IMixedRealityRaycastProvider RaycastProvider { get; }
Property Value
Methods
Declaration
public bool CheckCapability(MixedRealityCapability capability)
Parameters
Returns
Declaration
public bool CheckCapability(MixedRealityCapability capability)
Parameters
Returns
Clear all fallback input handlers off the stack.
Declaration
public void ClearFallbackInputStack()
Clear all fallback input handlers off the stack.
Declaration
public void ClearFallbackInputStack()
Clear the input disable stack, which will immediately re-enable input.
Declaration
public void ClearInputDisableStack()
Clear the input disable stack, which will immediately re-enable input.
Declaration
public void ClearInputDisableStack()
Clear all modal input handlers off the stack.
Declaration
public void ClearModalInputStack()
Clear all modal input handlers off the stack.
Declaration
public void ClearModalInputStack()
Declaration
public override void Destroy()
Overrides
Declaration
public override void Destroy()
Overrides
Declaration
public override void Disable()
Overrides
Declaration
public override void Disable()
Overrides
Declaration
public override void Enable()
Overrides
Declaration
public override void Enable()
Overrides
Declaration
public uint GenerateNewSourceId()
Returns
Declaration
public uint GenerateNewSourceId()
Returns
Declaration
public override T GetDataProvider<T>(string name = null)
where T : IMixedRealityDataProvider
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Type Parameters
Overrides
Declaration
public override T GetDataProvider<T>(string name = null)
where T : IMixedRealityDataProvider
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Type Parameters
Overrides
Declaration
public override IReadOnlyList<T> GetDataProviders<T>()
where T : IMixedRealityDataProvider
Returns
Type |
Description |
IReadOnlyList<T> |
|
Type Parameters
Overrides
Declaration
public override IReadOnlyList<T> GetDataProviders<T>()
where T : IMixedRealityDataProvider
Returns
Type |
Description |
IReadOnlyList<T> |
|
Type Parameters
Overrides
Declaration
public override void HandleEvent<T>(BaseEventData eventData, ExecuteEvents.EventFunction<T> eventHandler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
BaseEventData |
eventData |
|
ExecuteEvents.EventFunction<T> |
eventHandler |
|
Type Parameters
Overrides
Microsoft.MixedReality.Toolkit.BaseEventSystem.HandleEvent<T>(BaseEventData, ExecuteEvents.EventFunction<T>)
Declaration
public override void HandleEvent<T>(BaseEventData eventData, ExecuteEvents.EventFunction<T> eventHandler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
BaseEventData |
eventData |
|
ExecuteEvents.EventFunction<T> |
eventHandler |
|
Type Parameters
Overrides
Microsoft.MixedReality.Toolkit.BaseEventSystem.HandleEvent<T>(BaseEventData, ExecuteEvents.EventFunction<T>)
Declaration
public override void Initialize()
Overrides
Declaration
public override void Initialize()
Overrides
Remove the last game object from the fallback input stack.
Declaration
public void PopFallbackInputHandler()
Remove the last game object from the fallback input stack.
Declaration
public void PopFallbackInputHandler()
Pop disabled input state. When the last disabled state is
popped off the stack input will be re-enabled.
Declaration
public void PopInputDisable()
Pop disabled input state. When the last disabled state is
popped off the stack input will be re-enabled.
Declaration
public void PopInputDisable()
Remove the last game object from the modal input stack.
Declaration
public void PopModalInputHandler()
Remove the last game object from the modal input stack.
Declaration
public void PopModalInputHandler()
Push a game object into the fallback input stack. Any input handlers on
the game object are given input events when no modal or focused objects consume the event.
Declaration
public void PushFallbackInputHandler(GameObject inputHandler)
Parameters
Type |
Name |
Description |
GameObject |
inputHandler |
The input handler to push
|
Push a game object into the fallback input stack. Any input handlers on
the game object are given input events when no modal or focused objects consume the event.
Declaration
public void PushFallbackInputHandler(GameObject inputHandler)
Parameters
Type |
Name |
Description |
GameObject |
inputHandler |
The input handler to push
|
Push a disabled input state onto the input manager.
While input is disabled no events will be sent out and the cursor displays
a waiting animation.
Declaration
public void PushInputDisable()
Push a disabled input state onto the input manager.
While input is disabled no events will be sent out and the cursor displays
a waiting animation.
Declaration
public void PushInputDisable()
Push a game object into the modal input stack. Any input handlers
on the game object are given priority to input events before any focused objects.
Declaration
public void PushModalInputHandler(GameObject inputHandler)
Parameters
Type |
Name |
Description |
GameObject |
inputHandler |
The input handler to push
|
Push a game object into the modal input stack. Any input handlers
on the game object are given priority to input events before any focused objects.
Declaration
public void PushModalInputHandler(GameObject inputHandler)
Parameters
Type |
Name |
Description |
GameObject |
inputHandler |
The input handler to push
|
Declaration
public void RaiseDictationComplete(IMixedRealityInputSource source, string dictationResult, AudioClip dictationAudioClip)
Parameters
Declaration
public void RaiseDictationComplete(IMixedRealityInputSource source, string dictationResult, AudioClip dictationAudioClip)
Parameters
Declaration
public void RaiseDictationError(IMixedRealityInputSource source, string dictationResult, AudioClip dictationAudioClip = null)
Parameters
Declaration
public void RaiseDictationError(IMixedRealityInputSource source, string dictationResult, AudioClip dictationAudioClip = null)
Parameters
Declaration
public void RaiseDictationHypothesis(IMixedRealityInputSource source, string dictationHypothesis, AudioClip dictationAudioClip = null)
Parameters
Declaration
public void RaiseDictationHypothesis(IMixedRealityInputSource source, string dictationHypothesis, AudioClip dictationAudioClip = null)
Parameters
Declaration
public void RaiseDictationResult(IMixedRealityInputSource source, string dictationResult, AudioClip dictationAudioClip = null)
Parameters
Declaration
public void RaiseDictationResult(IMixedRealityInputSource source, string dictationResult, AudioClip dictationAudioClip = null)
Parameters
Declaration
public void RaiseFloatInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, float inputValue)
Parameters
Declaration
public void RaiseFloatInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, float inputValue)
Parameters
Declaration
public void RaiseFocusChanged(IMixedRealityPointer pointer, GameObject oldFocusedObject, GameObject newFocusedObject)
Parameters
Type |
Name |
Description |
IMixedRealityPointer |
pointer |
|
GameObject |
oldFocusedObject |
|
GameObject |
newFocusedObject |
|
Declaration
public void RaiseFocusChanged(IMixedRealityPointer pointer, GameObject oldFocusedObject, GameObject newFocusedObject)
Parameters
Type |
Name |
Description |
IMixedRealityPointer |
pointer |
|
GameObject |
oldFocusedObject |
|
GameObject |
newFocusedObject |
|
Declaration
public void RaiseFocusEnter(IMixedRealityPointer pointer, GameObject focusedObject)
Parameters
Declaration
public void RaiseFocusEnter(IMixedRealityPointer pointer, GameObject focusedObject)
Parameters
Declaration
public void RaiseFocusExit(IMixedRealityPointer pointer, GameObject unfocusedObject)
Parameters
Declaration
public void RaiseFocusExit(IMixedRealityPointer pointer, GameObject unfocusedObject)
Parameters
Declaration
public void RaiseGestureCanceled(IMixedRealityController controller, MixedRealityInputAction action)
Parameters
Declaration
public void RaiseGestureCanceled(IMixedRealityController controller, MixedRealityInputAction action)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action, MixedRealityPose inputData)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action, MixedRealityPose inputData)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action, Quaternion inputData)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action, Quaternion inputData)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action, Vector2 inputData)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action, Vector2 inputData)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action, Vector3 inputData)
Parameters
Declaration
public void RaiseGestureCompleted(IMixedRealityController controller, MixedRealityInputAction action, Vector3 inputData)
Parameters
Declaration
public void RaiseGestureStarted(IMixedRealityController controller, MixedRealityInputAction action)
Parameters
Declaration
public void RaiseGestureStarted(IMixedRealityController controller, MixedRealityInputAction action)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action, MixedRealityPose inputData)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action, MixedRealityPose inputData)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action, Quaternion inputData)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action, Quaternion inputData)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action, Vector2 inputData)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action, Vector2 inputData)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action, Vector3 inputData)
Parameters
Declaration
public void RaiseGestureUpdated(IMixedRealityController controller, MixedRealityInputAction action, Vector3 inputData)
Parameters
Declaration
public void RaiseHandJointsUpdated(IMixedRealityInputSource source, Handedness handedness, IDictionary<TrackedHandJoint, MixedRealityPose> jointPoses)
Parameters
Type |
Name |
Description |
IMixedRealityInputSource |
source |
|
Handedness |
handedness |
|
IDictionary<TrackedHandJoint, MixedRealityPose> |
jointPoses |
|
Declaration
public void RaiseHandJointsUpdated(IMixedRealityInputSource source, Handedness handedness, IDictionary<TrackedHandJoint, MixedRealityPose> jointPoses)
Parameters
Type |
Name |
Description |
IMixedRealityInputSource |
source |
|
Handedness |
handedness |
|
IDictionary<TrackedHandJoint, MixedRealityPose> |
jointPoses |
|
Declaration
public void RaiseHandMeshUpdated(IMixedRealityInputSource source, Handedness handedness, HandMeshInfo handMeshInfo)
Parameters
Declaration
public void RaiseHandMeshUpdated(IMixedRealityInputSource source, Handedness handedness, HandMeshInfo handMeshInfo)
Parameters
Declaration
public void RaiseOnInputDown(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction)
Parameters
Declaration
public void RaiseOnInputDown(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction)
Parameters
Declaration
public void RaiseOnInputUp(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction)
Parameters
Declaration
public void RaiseOnInputUp(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction)
Parameters
Declaration
public void RaiseOnTouchCompleted(IMixedRealityInputSource source, IMixedRealityController controller, Handedness handedness, Vector3 touchPoint)
Parameters
Declaration
public void RaiseOnTouchCompleted(IMixedRealityInputSource source, IMixedRealityController controller, Handedness handedness, Vector3 touchPoint)
Parameters
Declaration
public void RaiseOnTouchStarted(IMixedRealityInputSource source, IMixedRealityController controller, Handedness handedness, Vector3 touchPoint)
Parameters
Declaration
public void RaiseOnTouchStarted(IMixedRealityInputSource source, IMixedRealityController controller, Handedness handedness, Vector3 touchPoint)
Parameters
Declaration
public void RaiseOnTouchUpdated(IMixedRealityInputSource source, IMixedRealityController controller, Handedness handedness, Vector3 touchPoint)
Parameters
Declaration
public void RaiseOnTouchUpdated(IMixedRealityInputSource source, IMixedRealityController controller, Handedness handedness, Vector3 touchPoint)
Parameters
Declaration
public void RaisePointerClicked(IMixedRealityPointer pointer, MixedRealityInputAction inputAction, int count, Handedness handedness = null, IMixedRealityInputSource inputSource = null)
Parameters
Declaration
public void RaisePointerClicked(IMixedRealityPointer pointer, MixedRealityInputAction inputAction, int count, Handedness handedness = null, IMixedRealityInputSource inputSource = null)
Parameters
Declaration
public void RaisePointerDown(IMixedRealityPointer pointer, MixedRealityInputAction inputAction, Handedness handedness = null, IMixedRealityInputSource inputSource = null)
Parameters
Declaration
public void RaisePointerDown(IMixedRealityPointer pointer, MixedRealityInputAction inputAction, Handedness handedness = null, IMixedRealityInputSource inputSource = null)
Parameters
Declaration
public void RaisePointerDragged(IMixedRealityPointer pointer, MixedRealityInputAction inputAction, Handedness handedness = null, IMixedRealityInputSource inputSource = null)
Parameters
Declaration
public void RaisePointerDragged(IMixedRealityPointer pointer, MixedRealityInputAction inputAction, Handedness handedness = null, IMixedRealityInputSource inputSource = null)
Parameters
Declaration
public void RaisePointerUp(IMixedRealityPointer pointer, MixedRealityInputAction inputAction, Handedness handedness = null, IMixedRealityInputSource inputSource = null)
Parameters
Declaration
public void RaisePointerUp(IMixedRealityPointer pointer, MixedRealityInputAction inputAction, Handedness handedness = null, IMixedRealityInputSource inputSource = null)
Parameters
Declaration
public void RaisePoseInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, MixedRealityPose inputData)
Parameters
Declaration
public void RaisePoseInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, MixedRealityPose inputData)
Parameters
Declaration
public void RaisePositionInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, Vector2 inputPosition)
Parameters
Declaration
public void RaisePositionInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, Vector2 inputPosition)
Parameters
Declaration
public void RaisePositionInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, Vector3 position)
Parameters
Declaration
public void RaisePositionInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, Vector3 position)
Parameters
Declaration
public void RaisePreFocusChanged(IMixedRealityPointer pointer, GameObject oldFocusedObject, GameObject newFocusedObject)
Parameters
Type |
Name |
Description |
IMixedRealityPointer |
pointer |
|
GameObject |
oldFocusedObject |
|
GameObject |
newFocusedObject |
|
Declaration
public void RaisePreFocusChanged(IMixedRealityPointer pointer, GameObject oldFocusedObject, GameObject newFocusedObject)
Parameters
Type |
Name |
Description |
IMixedRealityPointer |
pointer |
|
GameObject |
oldFocusedObject |
|
GameObject |
newFocusedObject |
|
Declaration
public void RaiseRotationInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, Quaternion rotation)
Parameters
Declaration
public void RaiseRotationInputChanged(IMixedRealityInputSource source, Handedness handedness, MixedRealityInputAction inputAction, Quaternion rotation)
Parameters
Declaration
public void RaiseSourceDetected(IMixedRealityInputSource source, IMixedRealityController controller = null)
Parameters
Declaration
public void RaiseSourceDetected(IMixedRealityInputSource source, IMixedRealityController controller = null)
Parameters
Declaration
public void RaiseSourceLost(IMixedRealityInputSource source, IMixedRealityController controller = null)
Parameters
Declaration
public void RaiseSourceLost(IMixedRealityInputSource source, IMixedRealityController controller = null)
Parameters
Declaration
public void RaiseSourcePoseChanged(IMixedRealityInputSource source, IMixedRealityController controller, MixedRealityPose position)
Parameters
Declaration
public void RaiseSourcePoseChanged(IMixedRealityInputSource source, IMixedRealityController controller, MixedRealityPose position)
Parameters
Declaration
public void RaiseSourcePositionChanged(IMixedRealityInputSource source, IMixedRealityController controller, Vector2 position)
Parameters
Declaration
public void RaiseSourcePositionChanged(IMixedRealityInputSource source, IMixedRealityController controller, Vector2 position)
Parameters
Declaration
public void RaiseSourcePositionChanged(IMixedRealityInputSource source, IMixedRealityController controller, Vector3 position)
Parameters
Declaration
public void RaiseSourcePositionChanged(IMixedRealityInputSource source, IMixedRealityController controller, Vector3 position)
Parameters
Declaration
public void RaiseSourceRotationChanged(IMixedRealityInputSource source, IMixedRealityController controller, Quaternion rotation)
Parameters
Declaration
public void RaiseSourceRotationChanged(IMixedRealityInputSource source, IMixedRealityController controller, Quaternion rotation)
Parameters
Declaration
public void RaiseSourceTrackingStateChanged(IMixedRealityInputSource source, IMixedRealityController controller, TrackingState state)
Parameters
Declaration
public void RaiseSourceTrackingStateChanged(IMixedRealityInputSource source, IMixedRealityController controller, TrackingState state)
Parameters
Declaration
public void RaiseSpeechCommandRecognized(IMixedRealityInputSource source, RecognitionConfidenceLevel confidence, TimeSpan phraseDuration, DateTime phraseStartTime, SpeechCommands command)
Parameters
Declaration
public void RaiseSpeechCommandRecognized(IMixedRealityInputSource source, RecognitionConfidenceLevel confidence, TimeSpan phraseDuration, DateTime phraseStartTime, SpeechCommands command)
Parameters
Register a GameObject to listen to events that will receive all input events, regardless
of which other GameObjects might have handled the event beforehand.
Declaration
public override void Register(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
Listener to add.
|
Overrides
Register a GameObject to listen to events that will receive all input events, regardless
of which other GameObjects might have handled the event beforehand.
Declaration
public override void Register(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
Listener to add.
|
Overrides
Declaration
public IMixedRealityInputSource RequestNewGenericInputSource(string name, IMixedRealityPointer[] pointers = null, InputSourceType sourceType = null)
Parameters
Returns
Declaration
public IMixedRealityInputSource RequestNewGenericInputSource(string name, IMixedRealityPointer[] pointers = null, InputSourceType sourceType = null)
Parameters
Returns
Declaration
public override void Reset()
Overrides
Declaration
public override void Reset()
Overrides
Unregister a GameObject from listening to input events.
Declaration
public override void Unregister(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Overrides
Unregister a GameObject from listening to input events.
Declaration
public override void Unregister(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Overrides
Events
Declaration
public event BaseEventSystem.Action InputDisabled
Event Type
Type |
Description |
Microsoft.MixedReality.Toolkit.BaseEventSystem.Action |
|
Declaration
public event BaseEventSystem.Action InputDisabled
Event Type
Type |
Description |
Microsoft.MixedReality.Toolkit.BaseEventSystem.Action |
|
Declaration
public event BaseEventSystem.Action InputEnabled
Event Type
Type |
Description |
Microsoft.MixedReality.Toolkit.BaseEventSystem.Action |
|
Declaration
public event BaseEventSystem.Action InputEnabled
Event Type
Type |
Description |
Microsoft.MixedReality.Toolkit.BaseEventSystem.Action |
|
Implements
IDisposable