monkey icon indicating copy to clipboard operation
monkey copied to clipboard

Wrong Keys (GLFW3)

Open maffl-dev opened this issue 8 years ago • 0 comments

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.

maffl-dev avatar Jan 08 '17 16:01 maffl-dev