public struct InputDeviceMatcher : IEquatable<InputDeviceMatcher>
Properties
Declaration
public static InternedString DeviceClassKey { get; }
Property Value
Declaration
public bool empty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public static InternedString InterfaceKey { get; }
Property Value
Declaration
public static InternedString ManufacturerKey { get; }
Property Value
Declaration
public IEnumerable<KeyValuePair<string, object>> patterns { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>> |
|
Declaration
public static InternedString ProductKey { get; }
Property Value
Declaration
public static InternedString VersionKey { get; }
Property Value
Methods
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Declaration
public bool Equals(InputDeviceMatcher other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static InputDeviceMatcher FromDeviceDescription(InputDeviceDescription deviceDescription)
Parameters
Returns
Declaration
public static InputDeviceMatcher FromJson(string json)
Parameters
Type |
Name |
Description |
System.String |
json |
|
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Return the level of matching to the given deviceDescription
.
Declaration
public float MatchPercentage(InputDeviceDescription deviceDescription)
Parameters
Returns
Type |
Description |
System.Single |
|
Declaration
Returns
Type |
Description |
System.String |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Declaration
public InputDeviceMatcher With(InternedString key, object value, bool supportRegex = true)
Parameters
Type |
Name |
Description |
InternedString |
key |
|
System.Object |
value |
|
System.Boolean |
supportRegex |
|
Returns
Declaration
public InputDeviceMatcher WithCapability<TValue>(string path, TValue value)
Parameters
Type |
Name |
Description |
System.String |
path |
|
TValue |
value |
|
Returns
Type Parameters
Declaration
public InputDeviceMatcher WithDeviceClass(string pattern, bool supportRegex = true)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.Boolean |
supportRegex |
|
Returns
Declaration
public InputDeviceMatcher WithInterface(string pattern, bool supportRegex = true)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.Boolean |
supportRegex |
|
Returns
Declaration
public InputDeviceMatcher WithManufacturer(string pattern, bool supportRegex = true)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.Boolean |
supportRegex |
|
Returns
Declaration
public InputDeviceMatcher WithProduct(string pattern, bool supportRegex = true)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.Boolean |
supportRegex |
|
Returns
Declaration
public InputDeviceMatcher WithVersion(string pattern, bool supportRegex = true)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.Boolean |
supportRegex |
|
Returns
Operators
Declaration
public static bool operator ==(InputDeviceMatcher left, InputDeviceMatcher right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(InputDeviceMatcher left, InputDeviceMatcher right)
Parameters
Returns
Type |
Description |
System.Boolean |
|