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
{
10
public
struct
InputSourceInfo
:
IInputSourceInfoProvider
11
{
12
public
IInputSource
InputSource
;
13
public
uint
SourceId
;
14
15
public
InputSourceInfo
(
IInputSource
inputSource, uint sourceId) : this()
16
{
17
InputSource = inputSource;
18
SourceId = sourceId;
19
}
20
21
IInputSource
IInputSourceInfoProvider
.
InputSource
22
{
23
get
{
return
InputSource; }
24
}
25
26
uint
IInputSourceInfoProvider
.
SourceId
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
}
HoloToolkit.Unity.InputModule.InputSourceInfo
InputSourceInfo gives you the input source like hands or motion controller. It will also report the s...
Definition:
InputSourceInfo.cs:10
HoloToolkit.Unity.InputModule.InputSourceInfo.SourceId
uint SourceId
Definition:
InputSourceInfo.cs:13
HoloToolkit.Unity.InputModule.IInputSourceInfoProvider.InputSource
IInputSource InputSource
Definition:
IInputSourceInfoProvider.cs:12
HoloToolkit.Unity.InputModule.InputSourceInfo.InputSource
IInputSource InputSource
Definition:
InputSourceInfo.cs:12
HoloToolkit.Unity.InputModule.IInputSourceInfoProvider
IInputSourceInfoProvider gives you the input source like hands or motion controller. It will also report the source id for that source.
Definition:
IInputSourceInfoProvider.cs:10
HoloToolkit.Unity.InputModule.IInputSourceInfoProvider.SourceId
uint SourceId
Definition:
IInputSourceInfoProvider.cs:13
HoloToolkit.Unity.InputModule.IInputSource
Interface for an input source. An input source can be anything that a user can use to interact with a...
Definition:
IInputSource.cs:12
HoloToolkit.Unity.InputModule.InputSourceInfo.Matches
bool Matches(IInputSourceInfoProvider other)
Definition:
InputSourceInfo.cs:31
HoloToolkit.Unity.InputModule.InputSourceInfo.Matches
bool Matches(IInputSource otherInputSource, uint otherSourceId)
Definition:
InputSourceInfo.cs:36
HoloToolkit
HoloToolkit.Unity.InputModule.InputSourceInfo.InputSourceInfo
InputSourceInfo(IInputSource inputSource, uint sourceId)
Definition:
InputSourceInfo.cs:15
Assets
HoloToolkit
Input
Scripts
InputSources
InputSourceInfo.cs
Generated by
1.8.12