mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-21 06:14:10 +00:00
Linux: If a keysym has no LWJGL mapping, try the unshifted keysym instead
This commit is contained in:
parent
cc8cff2d42
commit
e6f8857439
1 changed files with 5 additions and 0 deletions
|
|
@ -578,6 +578,11 @@ static unsigned char getKeycode(XKeyEvent *event) {
|
|||
unsigned char keycode;
|
||||
KeySym keysym = mapEventToKeySym(event);
|
||||
keycode = mapKeySymToLWJGLKeyCode(keysym);
|
||||
if (keycode == org_lwjgl_input_Keyboard_KEY_NONE) {
|
||||
// Try unshifted keysym mapping
|
||||
keysym = XLookupKeysym(event, 0);
|
||||
keycode = mapKeySymToLWJGLKeyCode(keysym);
|
||||
}
|
||||
return keycode;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue