Class TouchEventCatcher
Utility for counting touch events.
Implements
IDisposable
IMixedRealityTouchHandler
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Tests
Assembly: cs.temp.dll.dll
Syntax
public class TouchEventCatcher : FocusedObjectEventCatcher<TouchEventCatcher>, IDisposable, IMixedRealityTouchHandler
Remarks
Touching an object does not imply getting focus, so use a global event handler to be independent from focus.
Fields
OnTouchCompletedEvent
Declaration
public readonly UnityEvent OnTouchCompletedEvent
Field Value
Type | Description |
---|---|
UnityEvent |
OnTouchStartedEvent
Declaration
public readonly UnityEvent OnTouchStartedEvent
Field Value
Type | Description |
---|---|
UnityEvent |
Methods
OnTouchCompleted(HandTrackingInputEventData)
Declaration
public void OnTouchCompleted(HandTrackingInputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
HandTrackingInputEventData | eventData |
OnTouchStarted(HandTrackingInputEventData)
Declaration
public void OnTouchStarted(HandTrackingInputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
HandTrackingInputEventData | eventData |
OnTouchUpdated(HandTrackingInputEventData)
Declaration
public void OnTouchUpdated(HandTrackingInputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
HandTrackingInputEventData | eventData |
Implements
IDisposable
IMixedRealityTouchHandler