Struct HIDSupport.HIDPageUsage
A pair of HID usage page and HID usage number.
Namespace: UnityEngine.InputSystem.HID
Syntax
public struct HIDPageUsage
Remarks
Used to describe a HID usage for the supportedHIDUsages property.
Constructors
HIDPageUsage(HID.GenericDesktop)
Create a HIDPageUsage struct from the GenericDesktop usage page by specifying the usage.
Declaration
public HIDPageUsage(HID.GenericDesktop usage)
Parameters
Type | Name | Description |
---|---|---|
HID.GenericDesktop | usage |
HIDPageUsage(HID.UsagePage, Int32)
Create a HIDPageUsage struct by specifying a page and usage.
Declaration
public HIDPageUsage(HID.UsagePage page, int usage)
Parameters
Type | Name | Description |
---|---|---|
HID.UsagePage | page | |
System.Int32 | usage |
Fields
page
The usage page.
Declaration
public HID.UsagePage page
Field Value
Type | Description |
---|---|
HID.UsagePage |
usage
A number specifying the usage on the usage page.
Declaration
public int usage
Field Value
Type | Description |
---|---|
System.Int32 |