Metadata for an input device.
[Serializable]
public struct InputDeviceDescription : IEquatable<InputDeviceDescription>
 
Properties
  
An optional JSON string listing device-specific capabilities.
Declaration
public string capabilities { get; set; }
 
Property Value
| Type | Description | 
| System.String |  | 
What the interface thinks the device classifies as.
Declaration
public string deviceClass { get; set; }
 
Property Value
| Type | Description | 
| System.String |  | 
Declaration
public bool empty { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
How we talk to the device; usually name of the underlying backend that feeds
state for the device.
Declaration
public string interfaceName { get; set; }
 
Property Value
| Type | Description | 
| System.String |  | 
Examples: "HID", "XInput"
Name of the vendor that produced the device.
Declaration
public string manufacturer { get; set; }
 
Property Value
| Type | Description | 
| System.String |  | 
Name of the product assigned by the vendor to the device.
Declaration
public string product { get; set; }
 
Property Value
| Type | Description | 
| System.String |  | 
If available, serial number for the device.
Declaration
public string serial { get; set; }
 
Property Value
| Type | Description | 
| System.String |  | 
Declaration
public string version { get; set; }
 
Property Value
| Type | Description | 
| System.String |  | 
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(InputDeviceDescription other)
 
Parameters
Returns
| Type | Description | 
| System.Boolean |  | 
Declaration
public static InputDeviceDescription 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()
Declaration
Returns
| Type | Description | 
| System.String |  | 
Declaration
public override string ToString()
 
Returns
| Type | Description | 
| System.String |  | 
Overrides
System.ValueType.ToString()
Operators
  
Declaration
public static bool operator ==(InputDeviceDescription left, InputDeviceDescription right)
 
Parameters
Returns
| Type | Description | 
| System.Boolean |  | 
Declaration
public static bool operator !=(InputDeviceDescription left, InputDeviceDescription right)
 
Parameters
Returns
| Type | Description | 
| System.Boolean |  |