-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Z reported as GLFW_KEY_Y and vice versa #518
Comments
What OS are you on? |
Oops, should've mentioned that: Windows 7. |
The key callback deals with physical keys and names them according to their values in the US keyboard layout. There was a bug (#114) in 3.0 that broke this behavior on Windows. This bug was fixed in 3.1. If you want to input text, see the character callback. For more information, see keyboard input in the input guide. |
Alright, I didn't see that it is supposed to return the US keyboard layout because |
i have the exact same problem and i really don't understand it (still). how can i detect in a platform independent manner that the combination "CTRL+Z" was pressed ? |
This lib is the worst. |
I recently upgraded to GLFW 3.1.1 from 3.0 and noticed that pressing Z on a German keyboard is now reported as GLFW_KEY_Y and pressing Y is reported as GLFW_KEY_Z. In GLFW 3.0 this was working correctly, I just double-checked it again.
The text was updated successfully, but these errors were encountered: