// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEngine.EventSystems;
namespace Microsoft.MixedReality.Toolkit.Input
{
///
/// Implementation of this interface causes a script to receive notifications of Touch events from HandTrackingInputSources
///
public interface IMixedRealityTouchHandler : IEventSystemHandler
{
///
/// When a Touch motion has occurred, this handler receives the event.
///
///
/// A Touch motion is defined as occurring within the bounds of an object (transitive).
///
/// Contains information about the HandTrackingInputSource.
void OnTouchStarted(HandTrackingInputEventData eventData);
///
/// When a Touch motion ends, this handler receives the event.
///
///
/// A Touch motion is defined as occurring within the bounds of an object (transitive).
///
/// Contains information about the HandTrackingInputSource.
void OnTouchCompleted(HandTrackingInputEventData eventData);
///
/// When a Touch motion is updated, this handler receives the event.
///
///
/// A Touch motion is defined as occurring within the bounds of an object (transitive).
///
/// Contains information about the HandTrackingInputSource.
void OnTouchUpdated(HandTrackingInputEventData eventData);
}
}