HID functionality is described by the USB HID standard usage tables. Each element and collection has a usage page and index, describing the type of control that it provides. This class allows to query the name of a usage and page based on the indices read from the device. This class is primarily used internally by other HID classes.
Retrieve the standard usage name and pagename of an HID usage element or collection.
usagePage |
usage page number |
usage |
usage index |
an Array with the pageName and usageName
Directory where the yaml files with the HID usage tables are stored.
Reads and parses the HID usage table file. Called from getUsageDescription to read in the usage table.
yamlfile |
the filename of the yamlfile with a particular usage table, relative to the hutDirectory. |
an IdentityDictionary representing the table
Retrieve usage id and page id from the usageName.
usageName |
the usage name |
an Array with the page id and the usage id
Retrieve the standard usage name and pagename of an HID usage element or collection.
page |
the usage page id |
usage |
the usage id |
the usage name
MultiLevelIdentityDictionary containing a map of page ids, usage ids to usage names.
IdentityDictionary containing a map of usageNames to page ids and usage ids.
Get the usage description for a collection or element with usage page 1 and usage index 5