AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
InputSourceInfo.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 namespace HoloToolkit.Unity.InputModule
5 {
11  {
13  public uint SourceId;
14 
15  public InputSourceInfo(IInputSource inputSource, uint sourceId) : this()
16  {
17  InputSource = inputSource;
18  SourceId = sourceId;
19  }
20 
22  {
23  get { return InputSource; }
24  }
25 
27  {
28  get { return SourceId; }
29  }
30 
31  public bool Matches(IInputSourceInfoProvider other)
32  {
33  return ((other != null) && Matches(other.InputSource, other.SourceId));
34  }
35 
36  public bool Matches(IInputSource otherInputSource, uint otherSourceId)
37  {
38  return ((InputSource == otherInputSource) && (SourceId == otherSourceId));
39  }
40  }
41 }
InputSourceInfo gives you the input source like hands or motion controller. It will also report the s...
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
bool Matches(IInputSourceInfoProvider other)
bool Matches(IInputSource otherInputSource, uint otherSourceId)
InputSourceInfo(IInputSource inputSource, uint sourceId)