We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Interface IMixedRealityTouchHandler

    Implementation of this interface causes a script to receive notifications of Touch events from HandTrackingInputSources

    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IMixedRealityTouchHandler : IEventSystemHandler

    Methods

    OnTouchCompleted(HandTrackingInputEventData)

    When a Touch motion ends, this handler receives the event.

    Declaration
    void OnTouchCompleted(HandTrackingInputEventData eventData)
    Parameters
    Type Name Description
    HandTrackingInputEventData eventData

    Contains information about the HandTrackingInputSource.

    Remarks

    A Touch motion is defined as occurring within the bounds of an object (transitive).

    OnTouchStarted(HandTrackingInputEventData)

    When a Touch motion has occurred, this handler receives the event.

    Declaration
    void OnTouchStarted(HandTrackingInputEventData eventData)
    Parameters
    Type Name Description
    HandTrackingInputEventData eventData

    Contains information about the HandTrackingInputSource.

    Remarks

    A Touch motion is defined as occurring within the bounds of an object (transitive).

    OnTouchUpdated(HandTrackingInputEventData)

    When a Touch motion is updated, this handler receives the event.

    Declaration
    void OnTouchUpdated(HandTrackingInputEventData eventData)
    Parameters
    Type Name Description
    HandTrackingInputEventData eventData

    Contains information about the HandTrackingInputSource.

    Remarks

    A Touch motion is defined as occurring within the bounds of an object (transitive).

    Back to top Generated by DocFX