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

Why SDL_SetKeymap is not in public API? #3

Closed
mittorn opened this issue May 13, 2015 · 1 comment
Closed

Why SDL_SetKeymap is not in public API? #3

mittorn opened this issue May 13, 2015 · 1 comment

Comments

@mittorn
Copy link

mittorn commented May 13, 2015

First, SDL makes translate from native keycodes to SDL scancodes
After that, sdl scancodes are translated to sdl keycodes.
And finally in sdl application i must translate them to my keycodes.
Why i cannot ajust keycodes tables from application to prevent last translation? What purpose of internal SDL keymap?

@okuoku
Copy link

okuoku commented May 13, 2015

Hi @mittorn , here is just a mirror of the SDL hg repository.

Generic SDL suggestions should go to libsdl ML( https://www.libsdl.org/mailing-list.php ) or forums ( http://forums.libsdl.org/ ).

matteckert pushed a commit to matteckert/sdl-old that referenced this issue Feb 12, 2021
…arently handle more of the work.

1. Comment that SDL_SetThreadPriority will make any necessary system changes when applying priority.
2. Add a hint to override SDL's default behavior for scheduler policy.
3. Modify the pthreads SDL_SetThreadPriority so that instead of just using the current thread scheduler policy it will change it to a policy that should work best for the requested priority.
4. Add hint checks in SDL_SetThreadPriority so that spurious#3 can be overridden if desired.
5. Modify the Linux SDL_SetThreadPriority so that in the case that policy, either by SDL defaults or from the hint, is a realtime policy it uses the realtime rtkit API.
6. Prior to calling rtkit on Linux make the necessary thread state changes that rtkit requires.  Currently this is done every time as it isn't expected that SDL_SetThreadPriority will be called repeatedly for a thread.
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