Closed dithpri closed 1 year ago
Thank you for the explanation
This should be fixed in 1676b4c4110f678b63f3ebc335b006df53f2f681 (1.19.2-1.1.0 and 1.19.3-1.1.0 on curseforge), but I can't test it on other platforms, so let me know if it doesn't work
Trying to use the keyboard to control instruments on Linux doesn't work as intended (from searching the Discord server, at least one user complained of a similar issue on
MacOSOS X). In my case, with a standard qwerty layout, "7" is the first key, and "r" is the last key of the octave. (so, the keys for playing the instrument are shifted backwards:7
,8
,9
,0
,-
,=
,<backspace>
,<tab>
,q
,w
,e
,r
). I am unsure whether those are universal for Linux or specific to my system/keyboard.From my understanding, this bug comes from these two lines: https://github.com/ercanserteli/xercamods/blob/0137d42f91802288e322352629413737b946727e/XercaMusicMod/src/main/java/xerca/xercamusic/client/GuiInstrument.java#L255 https://github.com/ercanserteli/xercamods/blob/0137d42f91802288e322352629413737b946727e/XercaMusicMod/src/main/java/xerca/xercamusic/client/GuiInstrument.java#L287
GLFW Documentation: (emphasis mine)
Indeed, running xev reports the following:
That is, the code
16
corresponds to the key for "7" on a standard QWERTY keyboard, and27
corresponds to "r" - which aligns with observations.