// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEngine.EventSystems;
namespace Microsoft.MixedReality.Toolkit.Input
{
///
/// Describes a source change event.
///
/// Source State events do not have an associated .
public class SourcePoseEventData : SourceStateEventData
{
///
/// The new position of the input source.
///
public T SourceData { get; private set; }
///
public SourcePoseEventData(EventSystem eventSystem) : base(eventSystem) { }
///
/// Populates the event with data.
///
public void Initialize(IMixedRealityInputSource inputSource, IMixedRealityController controller, T data)
{
Initialize(inputSource, controller);
SourceData = data;
}
}
}