Is there a function that maps either a key or scancode integer to a
GLFW_KEY_* integer that represents the label printed on the keyboard layout? In other words, if I press the letter “q” on QWERTY, AZERTY, or Dvorak, is there a function
f so that
f(e.scancode) == GLFW_KEY_Q?
It looks like
glfwGetKeyName(GLFW_KEY_UNKNOWN, scancode) works for all of the above keyboard layouts, but it returns a
const char* so I have to do a string comparison on “q”. Also it doesn’t work with nonprintable keys such as Enter, Tab, F1-12, etc.