Struct HID.HIDDeviceDescriptorBuilder
Helper to quickly build descriptors for arbitrary HIDs.
Assembly: Unity.InputSystem.dll
public struct HID.HIDDeviceDescriptorBuilder
Constructors
Declaration
public HIDDeviceDescriptorBuilder(HID.GenericDesktop usage)
Parameters
HIDDeviceDescriptorBuilder(UsagePage, int)
Declaration
public HIDDeviceDescriptorBuilder(HID.UsagePage usagePage, int usage)
Parameters
Fields
Declaration
Field Value
usagePage
Declaration
public HID.UsagePage usagePage
Field Value
Methods
Declaration
public HID.HIDDeviceDescriptorBuilder AddElement(HID.GenericDesktop usage, int sizeInBits)
Parameters
Returns
AddElement(UsagePage, int, int)
Declaration
public HID.HIDDeviceDescriptorBuilder AddElement(HID.UsagePage usagePage, int usage, int sizeInBits)
Parameters
Returns
Declaration
public HID.HIDDeviceDescriptor Finish()
Returns
Declaration
public HID.HIDDeviceDescriptorBuilder StartReport(HID.HIDReportType reportType, int reportId = 1)
Parameters
Returns
Declaration
public HID.HIDDeviceDescriptorBuilder WithLogicalMinMax(int min, int max)
Parameters
Type |
Name |
Description |
int |
min |
|
int |
max |
|
Returns
Declaration
public HID.HIDDeviceDescriptorBuilder WithPhysicalMinMax(int min, int max)
Parameters
Type |
Name |
Description |
int |
min |
|
int |
max |
|
Returns