microsoft / hidtools

Human Interface Device (HID) Tools for Windows and Devices
MIT License
146 stars 20 forks source link

Where to find the correct naming for all the usages? #11

Closed ddavidebor closed 1 year ago

ddavidebor commented 1 year ago

Hi,

In the examples I see naming as "Generic Desktop" and "Mouse". Where does this software get these keys and the associated values? I cannot find where the machine-readable hid usage tables this software is getting the data from are

matwilli commented 1 year ago

All definitions are from the official USB-IF HID-WG document for HID Usage Tables. This .PDF includes (as an embedded-file/attachment) a .JSON file with all keys/mappings.

That .PDF is downloaded (and embedded in HidSpecification.dll) as part of HidSpecification.csproj compilation. Then, during execution, the embedded .JSON from the embedded .PDF is extracted and read