blitz-research / monkey

Blitz Research Monkey Source
225 stars 59 forks source link

Wrong Keys (GLFW3) #95

Open frameland opened 7 years ago

frameland commented 7 years ago

I get the wrong keys when using KeyHit() and KeyDown() only on GLFW3. (html5 is okay) I am running macOS 10.11, have a german keyboard layout but use english system language. When using the code below the output is the reverse of what I expect.

If KeyHit(KEY_Z)
    Print "key z" 'prints y
Elseif KeyHit(KEY_Y)
    Print "key y" 'prints z
End

I found this github Issue and a workaround seems to be to use glfwGetKeyText() to get a string representation.