// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine.EventSystems; namespace Microsoft.MixedReality.Toolkit.Input { /// /// Describes an source state event that has a source id. /// /// Source State events do not have an associated . public class SourceStateEventData : BaseInputEventData { public IMixedRealityController Controller { get; private set; } /// public SourceStateEventData(EventSystem eventSystem) : base(eventSystem) { } /// /// Populates the event with data. /// public void Initialize(IMixedRealityInputSource inputSource, IMixedRealityController controller) { // NOTE: Source State events do not have an associated Input Action. BaseInitialize(inputSource, MixedRealityInputAction.None); Controller = controller; } } }