FocusProvider.GetPointerBehavior Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetPointerBehavior(IMixedRealityPointer) |
Gets the for a given pointer |
GetPointerBehavior<T>(Handedness, InputSourceType) |
Gets the behavior for the given pointer type. |
GetPointerBehavior(IMixedRealityPointer)
Gets the for a given pointer
public:
virtual Microsoft::MixedReality::Toolkit::Input::PointerBehavior GetPointerBehavior(Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer ^ pointer);
public Microsoft.MixedReality.Toolkit.Input.PointerBehavior GetPointerBehavior (Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer pointer);
abstract member GetPointerBehavior : Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer -> Microsoft.MixedReality.Toolkit.Input.PointerBehavior
override this.GetPointerBehavior : Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer -> Microsoft.MixedReality.Toolkit.Input.PointerBehavior
Public Function GetPointerBehavior (pointer As IMixedRealityPointer) As PointerBehavior
Parameters
- pointer
- IMixedRealityPointer
Returns
Implements
Applies to
GetPointerBehavior<T>(Handedness, InputSourceType)
Gets the behavior for the given pointer type.
public:
generic <typename T>
where T : class, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer virtual Microsoft::MixedReality::Toolkit::Input::PointerBehavior GetPointerBehavior(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, Microsoft::MixedReality::Toolkit::Input::InputSourceType sourceType);
public Microsoft.MixedReality.Toolkit.Input.PointerBehavior GetPointerBehavior<T> (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, Microsoft.MixedReality.Toolkit.Input.InputSourceType sourceType) where T : class, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
abstract member GetPointerBehavior : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSourceType -> Microsoft.MixedReality.Toolkit.Input.PointerBehavior (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
override this.GetPointerBehavior : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSourceType -> Microsoft.MixedReality.Toolkit.Input.PointerBehavior (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Function GetPointerBehavior(Of T As {Class, IMixedRealityPointer}) (handedness As Handedness, sourceType As InputSourceType) As PointerBehavior
Type Parameters
- T
Parameters
- handedness
- Handedness
Handedness to query
- sourceType
- InputSourceType
Returns
for the given pointer type and handedness. If right hand is enabled, left hand is not enabled, and Handedness.Any is passed, returns value for the right hand.