編集

次の方法で共有


FocusProvider.SetPointerBehavior<T> Method

Definition

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

public:
generic <typename T>
 where T : class, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer virtual void SetPointerBehavior(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, Microsoft::MixedReality::Toolkit::Input::InputSourceType inputType, Microsoft::MixedReality::Toolkit::Input::PointerBehavior pointerBehavior);
public void SetPointerBehavior<T> (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, Microsoft.MixedReality.Toolkit.Input.InputSourceType inputType, Microsoft.MixedReality.Toolkit.Input.PointerBehavior pointerBehavior) where T : class, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
abstract member SetPointerBehavior : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSourceType * Microsoft.MixedReality.Toolkit.Input.PointerBehavior -> unit (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
override this.SetPointerBehavior : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSourceType * Microsoft.MixedReality.Toolkit.Input.PointerBehavior -> unit (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Sub SetPointerBehavior(Of T As {Class, IMixedRealityPointer}) (handedness As Handedness, inputType As InputSourceType, pointerBehavior 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.

inputType
InputSourceType
pointerBehavior
PointerBehavior

Implements

Applies to