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

usage has been removed in node-hid #4

Closed
engwan opened this issue Apr 25, 2018 · 4 comments
Closed

usage has been removed in node-hid #4

engwan opened this issue Apr 25, 2018 · 4 comments
Labels

Comments

@engwan
Copy link

engwan commented Apr 25, 2018

Refer to: node-hid/node-hid#120

This library depends on usage to find the right HID device.

I made it working by using the interface field instead.

Device with interface of 0 is the correct one to listen to.

@nytamin
Copy link
Member

nytamin commented Apr 25, 2018

Good catch! Please submit a PR and I'll put it in.
We should probably update the dependency of node-hid-version as well, while we're at it

@nytamin nytamin added the Linux label Apr 25, 2018
@engwan
Copy link
Author

engwan commented Apr 26, 2018

Would you know how it works on Windows?

Are usage and usagePage removed in Windows too? Is interface also available on Windows?

@nytamin
Copy link
Member

nytamin commented Apr 26, 2018

I see that usage and usagePage are available on windows, and interface too. So it should be okay switching to using the interface attribute instead

nytamin added a commit that referenced this issue Oct 27, 2020
device.usage has been removed in node-hid, see #4
@nytamin
Copy link
Member

nytamin commented Oct 27, 2020

This has been addressed in 2883c46 , released in versions >=1.0.0 Better late than never I suppose...

@nytamin nytamin closed this as completed Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants