mixedreality/com.microsoft.mixedreality..../Core/Interfaces/InputSystem/Handlers/IMixedRealitySourcePoseHand...

39 lines
1.3 KiB
C#

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.MixedReality.Toolkit.Utilities;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Input
{
/// <summary>
/// Interface to implement to react to source
/// </summary>
public interface IMixedRealitySourcePoseHandler : IMixedRealitySourceStateHandler
{
/// <summary>
/// Raised when the source pose tracking state is changed.
/// </summary>
void OnSourcePoseChanged(SourcePoseEventData<TrackingState> eventData);
/// <summary>
/// Raised when the source position is changed.
/// </summary>
void OnSourcePoseChanged(SourcePoseEventData<Vector2> eventData);
/// <summary>
/// Raised when the source position is changed.
/// </summary>
void OnSourcePoseChanged(SourcePoseEventData<Vector3> eventData);
/// <summary>
/// Raised when the source rotation is changed.
/// </summary>
void OnSourcePoseChanged(SourcePoseEventData<Quaternion> eventData);
/// <summary>
/// Raised when the source pose is changed.
/// </summary>
void OnSourcePoseChanged(SourcePoseEventData<MixedRealityPose> eventData);
}
}