mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +00:00
Clear the LUT, when not using Xkb
This commit is contained in:
parent
fc9ec31ba5
commit
906a387d74
@ -226,11 +226,13 @@ static void updateKeyCodeLUT(void)
|
|||||||
int i;
|
int i;
|
||||||
char name[XkbKeyNameLength + 1];
|
char name[XkbKeyNameLength + 1];
|
||||||
XkbDescPtr descr;
|
XkbDescPtr descr;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Clear the LUT
|
// Clear the LUT
|
||||||
for (keyCode = 0; keyCode < 256; keyCode++)
|
for (keyCode = 0; keyCode < 256; keyCode++)
|
||||||
_glfw.x11.keyCodeLUT[keyCode] = GLFW_KEY_UNKNOWN;
|
_glfw.x11.keyCodeLUT[keyCode] = GLFW_KEY_UNKNOWN;
|
||||||
|
|
||||||
|
#if defined(_GLFW_USE_XKB)
|
||||||
// Use XKB to determine physical key locations independently of the current
|
// Use XKB to determine physical key locations independently of the current
|
||||||
// keyboard layout
|
// keyboard layout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user