Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X11: Fix bug that mapped all function keys to GLFW_KEY_UNKNOWN #1

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

ZenulAbidin
Copy link
Owner

XkbKeycodeToKeysym in function translateKeyCode in x11_init.c is returning keySym value of -1 when called with the key's scancode. This causes all function and numpad keys to be mapped to GLFW_KEY_UNKNOWN.

Printable keys register correctly because they are mapped explicitly, so I mapped the other keys like that too. There is no reason to use translateKeyCode now.

@ZenulAbidin ZenulAbidin added the bug Something isn't working label Nov 21, 2019
@ZenulAbidin ZenulAbidin merged commit 1a07089 into master Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant