Class HidUsage
A single HID descriptor. HidUsages identify the intended use of HID controls and what the controls actually measure.
public class HidUsage
- Inheritance
-
HidUsage
- Inherited Members
Remarks
See https://usb.org for more information on the HID specifications.
Constructors
HidUsage(int, int, ReportType, HidValueType, int)
public HidUsage(int usagePage, int usage, ReportType reportType, HidValueType hidValueType, int reportSize)
Parameters
usagePage
intusage
intreportType
ReportTypehidValueType
HidValueTypereportSize
int
Properties
HidValueType
public HidValueType HidValueType { get; }
Property Value
- HidValueType
The type of values that the usage will report or use.
ReportSize
public int ReportSize { get; }
Property Value
- int
The maximum size of a single report for this usage.
ReportType
public ReportType ReportType { get; }
Property Value
- ReportType
The type of reports offered by the usage.
Usage
public int Usage { get; }
Property Value
- int
The usage ID of the usage.
UsagePage
public int UsagePage { get; }
Property Value
- int
The usage page of the usage.
Methods
Deserialize(HidUsage)
public static HidUsage Deserialize(HidUsage dto)
Parameters
dto
HidUsage
Returns
ToString()
public override string ToString()