Editar

Partilhar via


IPointerPreferences.GetPointerBehavior Method

Definition

Overloads

GetPointerBehavior(IMixedRealityPointer)

Gets the for a given pointer

GetPointerBehavior<T>(Handedness, InputSourceType)

Gets the for a given pointer type, handedness, and input type

GetPointerBehavior(IMixedRealityPointer)

Gets the for a given pointer

public:
 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
Public Function GetPointerBehavior (pointer As IMixedRealityPointer) As PointerBehavior

Parameters

Returns

Applies to

GetPointerBehavior<T>(Handedness, InputSourceType)

Gets the for a given pointer type, handedness, and input type

public:
generic <typename T>
 where T : class, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer 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)
Public Function GetPointerBehavior(Of T As {Class, IMixedRealityPointer}) (handedness As Handedness, sourceType As InputSourceType) As PointerBehavior

Type Parameters

T

All pointers that are of this type, or a subclass of this type, will have the given behavior

Parameters

handedness
Handedness

Specify Handedness.Any to apply to all handedness, or specify a specific handedness to just disable, right, left.

sourceType
InputSourceType

Allows specification of pointer behavior per input source, so that pointers can be disabled for hands but not controllers, and vice versa.

Returns

Applies to