Class PointerClickHandler
This component handles pointer clicks from all types of input sources.
i.e. a primary mouse button click, motion controller selection press, or hand tap.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
[Obsolete("Use PointerHandler instead of PointerClickHandler", true)]
public class PointerClickHandler : BaseInputHandler, IMixedRealityPointerHandler, IEventSystemHandler
Methods
OnPointerClicked(MixedRealityPointerEventData)
When a pointer clicked event is raised, this method is used to pass along the event data to the input handler.
Declaration
public void OnPointerClicked(MixedRealityPointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPointerEventData | eventData |
OnPointerDown(MixedRealityPointerEventData)
When a pointer down event is raised, this method is used to pass along the event data to the input handler.
Declaration
public void OnPointerDown(MixedRealityPointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPointerEventData | eventData |
OnPointerDragged(MixedRealityPointerEventData)
Called every frame a pointer is down. Can be used to implement drag-like behaviors.
Declaration
public void OnPointerDragged(MixedRealityPointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPointerEventData | eventData |
OnPointerUp(MixedRealityPointerEventData)
When a pointer up event is raised, this method is used to pass along the event data to the input handler.
Declaration
public void OnPointerUp(MixedRealityPointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPointerEventData | eventData |
RegisterHandlers()
Overload this method to specify, which global events component wants to listen to. Use RegisterHandler API of InputSystem
Declaration
protected override void RegisterHandlers()
Overrides
UnregisterHandlers()
Overload this method to specify, which global events component should stop listening to. Use UnregisterHandler API of InputSystem
Declaration
protected override void UnregisterHandlers()