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

SDL uses characters instead of keys #696

Open
Noofbiz opened this issue Jan 13, 2020 · 0 comments
Open

SDL uses characters instead of keys #696

Noofbiz opened this issue Jan 13, 2020 · 0 comments

Comments

@Noofbiz
Copy link
Member

Noofbiz commented Jan 13, 2020

currently, SDL builds poll the keyboard keys and return the character the key returns. This works if the game is developed on the same keyboard layout, usually qwerty, as the players. But if the players have a different layout, then the keys will end up all over the place. To fix this, in glfw we do keys based on the qwerty keyboard location, so KeyQ represents the top left-most keyboard key, no matter what the layout actually is. We should do this in SDL as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant