SDL uses characters instead of keys
Noofbiz opened this issue · 0 comments
Noofbiz commented
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.