HidLibrary icon indicating copy to clipboard operation
HidLibrary copied to clipboard

support Enumerate by (vid, pid)[]

Open flier268 opened this issue 6 years ago • 3 comments

flier268 avatar Apr 20 '20 01:04 flier268

Maybe i can't use Tuple, because it is too new.

flier268 avatar Apr 20 '20 01:04 flier268

I agree that it would be useful to not need to provide a Usage ID to the Enumerate method. I think a simpler way to implement this would be adding a default value of 0 to the UsageID parameter on the existing method, and then consider 0 to mean "any usage". The documentation I found for HID Usage 0 seems to indicate that it would be valid to use it this way.

amullins83 avatar Apr 20 '20 18:04 amullins83

RE: HID Usage Tables documentation: https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf

amullins83 avatar Apr 20 '20 18:04 amullins83