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: Unknown SDL_MouseID/SDL_KeyboardID in events #12320

Closed
TheMode opened this issue Feb 18, 2025 · 3 comments
Closed

SDL3: Unknown SDL_MouseID/SDL_KeyboardID in events #12320

TheMode opened this issue Feb 18, 2025 · 3 comments

Comments

@TheMode
Copy link

TheMode commented Feb 18, 2025

Listened to SDL_EVENT_MOUSE_BUTTON_DOWN and SDL_EVENT_KEY_DOWN, I then tried to respectively retrieve event->button.which and event->key.which.

On Windows 11, mouse and keyboard devices always seem to be 0.

On MacOS, keyboard is correct (although there is still only one device, see #12319), mouse is always 0.

@TheMode TheMode changed the title SDL3: 0 SDL_MouseID/SDL_KeyboardID in events SDL3: Unknown SDL_MouseID/SDL_KeyboardID in events Feb 18, 2025
@expikr
Copy link
Contributor

expikr commented Feb 18, 2025

Duplicate of #11259

@TheMode
Copy link
Author

TheMode commented Feb 18, 2025

Alright, went forward with relative mouse and it seems to work (outside of an ImGui bug I issued)

Remain the issue with keyboards which continuously returns 0 on Windows

@expikr
Copy link
Contributor

expikr commented Feb 18, 2025

also duplicate of #11336

@slouken slouken closed this as completed Feb 20, 2025
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

3 participants