AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
BaseInputEventData.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using UnityEngine.EventSystems;
5 
6 namespace HoloToolkit.Unity.InputModule
7 {
11  public abstract class BaseInputEventData : BaseEventData, IInputSourceInfoProvider
12  {
16  public IInputSource InputSource { get; private set; }
17 
21  public uint SourceId { get; private set; }
22 
26  public object Tag { get; private set; }
27 
28  public BaseInputEventData(EventSystem eventSystem) : base(eventSystem)
29  {
30  }
31 
32  protected virtual void BaseInitialize(IInputSource inputSource, uint sourceId, object tag)
33  {
34  Reset();
35  InputSource = inputSource;
36  SourceId = sourceId;
37  Tag = tag;
38  }
39  }
40 }
IInputSourceInfoProvider gives you the input source like hands or motion controller. It will also report the source id for that source.
Interface for an input source. An input source can be anything that a user can use to interact with a...
Definition: IInputSource.cs:12
virtual void BaseInitialize(IInputSource inputSource, uint sourceId, object tag)