Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composite HID device, how to get the right interface? #140

Open
hlshih opened this issue Sep 20, 2023 · 0 comments
Open

Composite HID device, how to get the right interface? #140

hlshih opened this issue Sep 20, 2023 · 0 comments

Comments

@hlshih
Copy link

hlshih commented Sep 20, 2023

composite HID device (generic + keyboard), generic use interface 0, keyboard use interface 1.
I use
_device = HidDevices.Enumerate(VendorId, ProductId).FirstOrDefault();
to get the device, and use
_device.Write(buffer);
to write data to generic device, but generic device fail to get data. What's wrong?
If only generic device only (not composite USB device), HID generic get data success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant