Class HID
A generic HID input device.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.Input.Plugins.HID
Syntax
public class HID : InputDevice
Remarks
This class represents a best effort to mirror the control setup of a HID discovered in the system. It is used only as a fallback where we cannot match the device to a specific product we know of. Wherever possible we construct more specific device representations such as Gamepad.
Fields
kHIDInterface
Declaration
public const string kHIDInterface = "HID"
Field Value
Type | Description |
---|---|
System.String |
kHIDNamespace
Declaration
public const string kHIDNamespace = "HID"
Field Value
Type | Description |
---|---|
System.String |
Properties
hidDescriptor
The HID device descriptor as received from the system.
Declaration
public HID.HIDDeviceDescriptor hidDescriptor { get; }
Property Value
Type | Description |
---|---|
HID.HIDDeviceDescriptor |
QueryHIDParsedReportDescriptorDeviceCommandType
Declaration
public static FourCC QueryHIDParsedReportDescriptorDeviceCommandType { get; }
Property Value
Type | Description |
---|---|
FourCC |
QueryHIDReportDescriptorDeviceCommandType
Command code for querying the HID report descriptor from a device.
Declaration
public static FourCC QueryHIDReportDescriptorDeviceCommandType { get; }
Property Value
Type | Description |
---|---|
FourCC |
See Also
ExecuteCommand<TCommand>(TCommand)
QueryHIDReportDescriptorSizeDeviceCommandType
Command code for querying the HID report descriptor size in bytes from a device.
Declaration
public static FourCC QueryHIDReportDescriptorSizeDeviceCommandType { get; }
Property Value
Type | Description |
---|---|
FourCC |
See Also
ExecuteCommand<TCommand>(TCommand)
Methods
ReadHIDDeviceDescriptor(Int32, ref InputDeviceDescription, IInputRuntime)
Declaration
public static HID.HIDDeviceDescriptor ReadHIDDeviceDescriptor(int deviceId, ref InputDeviceDescription deviceDescription, IInputRuntime runtime)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | deviceId | |
InputDeviceDescription | deviceDescription | |
IInputRuntime | runtime |
Returns
Type | Description |
---|---|
HID.HIDDeviceDescriptor |
ReadHIDDeviceDescriptor(InputDevice, IInputRuntime)
Declaration
public static HID.HIDDeviceDescriptor ReadHIDDeviceDescriptor(InputDevice device, IInputRuntime runtime)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | device | |
IInputRuntime | runtime |
Returns
Type | Description |
---|---|
HID.HIDDeviceDescriptor |
UsageToString(HID.UsagePage, Int32, out String, out String)
Declaration
public static bool UsageToString(HID.UsagePage usagePage, int usage, out string usagePageString, out string usageString)
Parameters
Type | Name | Description |
---|---|---|
HID.UsagePage | usagePage | |
System.Int32 | usage | |
System.String | usagePageString | |
System.String | usageString |
Returns
Type | Description |
---|---|
System.Boolean |