Edit

Share via


IMixedRealityFocusProvider.SubscribeToPrimaryPointerChanged Method

Definition

Subscribes to primary pointer changes.

public:
 void SubscribeToPrimaryPointerChanged(Microsoft::MixedReality::Toolkit::Input::PrimaryPointerChangedHandler ^ handler, bool invokeHandlerWithCurrentPointer);
public void SubscribeToPrimaryPointerChanged (Microsoft.MixedReality.Toolkit.Input.PrimaryPointerChangedHandler handler, bool invokeHandlerWithCurrentPointer);
abstract member SubscribeToPrimaryPointerChanged : Microsoft.MixedReality.Toolkit.Input.PrimaryPointerChangedHandler * bool -> unit
Public Sub SubscribeToPrimaryPointerChanged (handler As PrimaryPointerChangedHandler, invokeHandlerWithCurrentPointer As Boolean)

Parameters

handler
PrimaryPointerChangedHandler

Handler to be called when the primary pointer changes

invokeHandlerWithCurrentPointer
Boolean

When true, the passed in handler will be invoked immediately with the current primary pointer before subscribing. This is useful to avoid having to manually poll the current value.

Applies to