IMixedRealityFocusProvider.SubscribeToPrimaryPointerChanged 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.
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.