Clear the LUT, when not using Xkb

This commit is contained in:
Andrew Corrigan 2013-12-03 21:59:09 -05:00
parent fc9ec31ba5
commit 906a387d74

View File

@ -226,11 +226,13 @@ static void updateKeyCodeLUT(void)
int i;
char name[XkbKeyNameLength + 1];
XkbDescPtr descr;
#endif
// Clear the LUT
for (keyCode = 0; keyCode < 256; keyCode++)
_glfw.x11.keyCodeLUT[keyCode] = GLFW_KEY_UNKNOWN;
#if defined(_GLFW_USE_XKB)
// Use XKB to determine physical key locations independently of the current
// keyboard layout