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

Missing KMOD_SCROLL #4566

Closed
this-is-your-do opened this issue Aug 1, 2021 · 0 comments
Closed

Missing KMOD_SCROLL #4566

this-is-your-do opened this issue Aug 1, 2021 · 0 comments
Assignees
Milestone

Comments

@this-is-your-do
Copy link

this-is-your-do commented Aug 1, 2021

While SDL2 supports querying the current state of the CapsLock & NumLock toggle via SDL_GetModState with KMOD_CAPS and KMOD_NUM - it doesn't support querying the current state of the ScrollLock toggle.

Thus, it's not currently possible to know its state currently (you can't just listen to key press events, as its state may change before your app is launched, as an example [or when the app isn't in focus, as another])

Now, ScrollLock is certainly one of the less popular keys, but it still exists on most "standard" desktop keyboards, and common OSes like linux & windows handle its toggling just like they do with CapsLock & NumLock.

So it would be great if SDL exposed this as well, just like it already exposes CapsLock & NumLock.

Thanks!

@slouken slouken self-assigned this Aug 1, 2021
@slouken slouken added this to the 2.0.18 milestone Aug 1, 2021
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

2 participants