Class BaseGenericInputSource
Base class for input sources that don't inherit from MonoBehaviour.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class BaseGenericInputSource : IMixedRealityInputSource, IMixedRealityEventSource, IEqualityComparer, IDisposable
Remarks
This base class does not support adding or removing pointers, because many will never pass pointers in their constructors and will fall back to either the Gaze or Mouse Pointer.
Constructors
BaseGenericInputSource(String, IMixedRealityPointer[], InputSourceType)
Constructor.
Declaration
public BaseGenericInputSource(string name, IMixedRealityPointer[] pointers = null, InputSourceType sourceType = InputSourceType.Other)
Parameters
Type | Name | Description |
---|---|---|
String | name | |
IMixedRealityPointer[] | pointers | |
InputSourceType | sourceType |
Properties
Pointers
Array of pointers associated with this input source.
Declaration
public virtual IMixedRealityPointer[] Pointers { get; }
Property Value
Type | Description |
---|---|
IMixedRealityPointer[] |
SourceId
The Unique Source Id of this Event Source.
Declaration
public uint SourceId { get; }
Property Value
Type | Description |
---|---|
UInt32 |
SourceName
The Name of this Event Source.
Declaration
public string SourceName { get; }
Property Value
Type | Description |
---|---|
String |
SourceType
The type of input source this object represents.
Declaration
public InputSourceType SourceType { get; set; }
Property Value
Type | Description |
---|---|
InputSourceType |
Methods
Dispose()
Dispose.
Declaration
public virtual void Dispose()
Equals(IMixedRealityInputSource, IMixedRealityInputSource)
Declaration
public static bool Equals(IMixedRealityInputSource left, IMixedRealityInputSource right)
Parameters
Type | Name | Description |
---|---|---|
IMixedRealityInputSource | left | |
IMixedRealityInputSource | right |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Implements
IEqualityComparer
IDisposable