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

SDL3: Generic Keyboard/Mouse names #12319

Closed
TheMode opened this issue Feb 18, 2025 · 1 comment · Fixed by #12330
Closed

SDL3: Generic Keyboard/Mouse names #12319

TheMode opened this issue Feb 18, 2025 · 1 comment · Fixed by #12330
Milestone

Comments

@TheMode
Copy link

TheMode commented Feb 18, 2025

SDL_GetKeyboardNameForID and SDL_GetMouseNameForID don't work very well to differentiate devices.

On Windows, everything is HID Keyboard Device (same as shown in the Device Manager).

On MacOS there is always only a single unnamed keyboard/mouse (although I have both the internal laptop keyboard/trackpad and 2 USB keyboards + 1 USB mouse)

Names should probably be changed to include some sort of differentiator (manufacturer, unique id, product id), and MacOS properly list connected devices.

Windows:
Image

MacOS:
Image

@TheMode TheMode changed the title Generic Keyboard/Mouse names SDL3: Generic Keyboard/Mouse names Feb 18, 2025
@slouken
Copy link
Collaborator

slouken commented Feb 18, 2025

Pull requests are welcome!

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 a pull request may close this issue.

2 participants