Editar

Partilhar via


PointerBehaviorControls.TogglePointerEnabled<T>(InputSourceType) Method

Definition

Toggles a pointer's "enabled" behavior. If a pointer's PointerBehavior is Default or AlwaysOn, set it to AlwaysOff. Otherwise, set the pointer's behavior to Default. Will set this state for all matching pointers.

public:
generic <typename T>
 where T : class, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer void TogglePointerEnabled(Microsoft::MixedReality::Toolkit::Input::InputSourceType inputType);
public void TogglePointerEnabled<T> (Microsoft.MixedReality.Toolkit.Input.InputSourceType inputType) where T : class, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
member this.TogglePointerEnabled : Microsoft.MixedReality.Toolkit.Input.InputSourceType -> unit (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Sub TogglePointerEnabled(Of T As {Class, IMixedRealityPointer}) (inputType As InputSourceType)

Type Parameters

T

Type of pointer to set

Parameters

inputType
InputSourceType

Input type of pointer to set

Applies to