Class DefaultPointerMediator
The default implementation for pointer mediation in MRTK which is responsible for
determining which pointers are active based on the state of all pointers.
For example, one of the key things this class does is disable far pointers when a near pointer is close to an object.
Inheritance
DefaultPointerMediator
Assembly: cs.temp.dll.dll
public class DefaultPointerMediator : IMixedRealityPointerMediator
Constructors
Declaration
public DefaultPointerMediator()
Declaration
[Obsolete("Use DefaultPointerMediator() instead, followed by a call to SetPointerPreferences()")]
public DefaultPointerMediator(IPointerPreferences pointerPrefs)
Parameters
Fields
Declaration
protected readonly HashSet<IMixedRealityPointer> allPointers
Field Value
Declaration
protected readonly HashSet<IMixedRealityPointer> farInteractPointers
Field Value
Declaration
protected readonly HashSet<IMixedRealityNearPointer> nearInteractPointers
Field Value
Declaration
protected readonly Dictionary<IMixedRealityInputSource, HashSet<IMixedRealityPointer>> pointerByInputSourceParent
Field Value
Declaration
protected IPointerPreferences pointerPreferences
Field Value
Declaration
protected readonly HashSet<IMixedRealityTeleportPointer> teleportPointers
Field Value
Declaration
protected readonly HashSet<IMixedRealityPointer> unassignedPointers
Field Value
Methods
Declaration
public virtual void RegisterPointers(IMixedRealityPointer[] pointers)
Parameters
Called to set the pointer preferences of the current input and focus
configuration.
Declaration
public void SetPointerPreferences(IPointerPreferences pointerPreferences)
Parameters
Declaration
public virtual void UnregisterPointers(IMixedRealityPointer[] pointers)
Parameters
Declaration
public virtual void UpdatePointers()
Implements