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

Detect and handle duplicated keyboard device names #50

Conversation

mschout
Copy link

@mschout mschout commented May 22, 2024

IF a keyboard name is duplicated in the device list, append the device number to the end.

I have no idea if there is a better way to do this or not, and I have very little rust experience, but this gets my Rainy 75 working as it exposes itself on two devices with the exact same name and the lower numbered device is always the one that receives the events.

fixes #49

@RichardFevrier
Copy link

Isn't already handled by #41 ?

@mschout
Copy link
Author

mschout commented Aug 3, 2024

Isn't already handled by #41 ?

Yeah, looks similar. Can close this in favor of #41 I did comment over there that maybe should make sure the numbering is deterministic (probably by sorting the devices), but otherwise its basically the same solution.

@mschout mschout closed this Aug 3, 2024
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

Successfully merging this pull request may close these issues.

Handle duplicated keyboard names on multiple device paths.
2 participants