You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thraix opened this issue
Aug 13, 2020
· 3 comments
Assignees
Labels
bugBug reports and bugfix pull requestsduplicateIssues duplicating another issueinputKeyboard, joystick or mouseverifiedReproduced or otherwise verified bugsX11
I've been having a problem with the key callback generating GLFW_KEY_UNKNOWN when using a keyboard layout which is not the primary one.
I have setup my keyboard with the command setxkbmap -layout us,se, that is, using us as a primary layout and se as a secondary layout. Whenever I launch my glfw program with the current layout set to se all the functional keys (ctrl, super, alt, F1-F12) report -1 as keycode.
This problem also occurs if I setup the keyboard using setxkbmap -layout se,us and starting the program with the us layout. Meaning the problem isn't with using the se layout, but using the secondary layout.
The problem occurs both using the glfw version provided by the manjaro repository, but also the latest version on GitHub.
Here is a test program I've constructed which reports the keycodes and scancodes when a user presses a button:
Thank you for the detailed bug report! This is hopefully the same bug that was fixed with #1598. If possible, test the default branch or the 3.3-stable branch.
I though I was using the default branch but apparently I needed to specify where the glfw 3.3.3 library was located when compiling. So after getting the 3.3-stable downloaded and installed correctly it now reports the correct key codes (not -1). Sorry for wasting your time by not installing the latest version correctly and thanks :)
bugBug reports and bugfix pull requestsduplicateIssues duplicating another issueinputKeyboard, joystick or mouseverifiedReproduced or otherwise verified bugsX11
Operating System
Linux Manjaro i3 using X11
Keyboard
Corsair k70 rgb mk.2 using ckb-next driver
I've been having a problem with the key callback generating
GLFW_KEY_UNKNOWN
when using a keyboard layout which is not the primary one.I have setup my keyboard with the command
setxkbmap -layout us,se
, that is, usingus
as a primary layout andse
as a secondary layout. Whenever I launch my glfw program with the current layout set tose
all the functional keys (ctrl, super, alt, F1-F12) report -1 as keycode.This problem also occurs if I setup the keyboard using
setxkbmap -layout se,us
and starting the program with theus
layout. Meaning the problem isn't with using these
layout, but using the secondary layout.The problem occurs both using the glfw version provided by the manjaro repository, but also the latest version on GitHub.
Here is a test program I've constructed which reports the keycodes and scancodes when a user presses a button:
A sample output of the program is provided below:
If there is any more information I can provide to help debug this problem, don't hesitate to ask :)
The text was updated successfully, but these errors were encountered: