Class HID
A generic HID input device.
Inherited Members
Namespace: UnityEngine .InputSystem .HID
Assembly: Unity.InputSystem.dll
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.
Properties
QueryHIDParsedReportDescriptorDeviceCommandType
Declaration
public static FourCC QueryHIDParsedReportDescriptorDeviceCommandType { get; }
Property Value
Type | Description |
---|---|
Four |
QueryHIDReportDescriptorDeviceCommandType
Command code for querying the HID report descriptor from a device.
Declaration
public static FourCC QueryHIDReportDescriptorDeviceCommandType { get; }
Property Value
Type | Description |
---|---|
Four |
See Also
ExecuteCommand <TCommand>(ref 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 |
---|---|
Four |
See Also
ExecuteCommand <TCommand>(ref TCommand)
hidDescriptor
The HID device descriptor as received from the system.
Declaration
public HID.HIDDeviceDescriptor hidDescriptor { get; }
Property Value
Type | Description |
---|---|
HID.HIDDevice |
Methods
UsagePageToString(UsagePage)
Declaration
public static string UsagePageToString(HID.UsagePage usagePage)
Parameters
Returns
Type | Description |
---|---|
string |
UsageToString(UsagePage, int)
Declaration
public static string UsageToString(HID.UsagePage usagePage, int usage)
Parameters
Returns
Type | Description |
---|---|
string |