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
I will explain with a simple example.
I used a AZERTY keyboard and I wand to do an undo on the map editor.
On this line, it is said that the undo action is on Ctrl + Z (which is also the normal shortcut on an AZERTY keyboard)
But on Osu!(lazer) I need to press Ctrl + W (as if my keyboard was forced to QWERTY). The Z and W keys are reversed between QWERTY and AZERTY.
The weirdest thing is that I don't have the problem on osu!(stable).
I think the problem is related to this ppy/osu#11143.
P.-S I don't have the problem when I write text in osu! or when I maps my keys in the key configuration.
EDIT: The issue seems come from the InputKey.cs which hard-codes values.
The text was updated successfully, but these errors were encountered:
MatthieuHernandez
changed the title
InputKey does not use the correct keys on keyboards other than QWERTY
InputKey does not use the correct keys when the keyboard layout is not QWERTY
May 2, 2023
I just found the exact source of the issue.
In the file SDL2Extensions.cs for the mapping of the keys, it is used SDL.SDL_Scancode which maps the keys by position on the keyboard and not by symbol.
See the SDL documentation: SDL2/CategoryKeyboard.
The solution is simple, it consists in replacing all SDL_Scancodes by SDL_Keycodes but...
⚠️ This change could have unwanted consequences for some users that might be difficult to predict.
I will explain with a simple example.
I used a AZERTY keyboard and I wand to do an undo on the map editor.
On this line, it is said that the undo action is on Ctrl + Z (which is also the normal shortcut on an AZERTY keyboard)
But on Osu!(lazer) I need to press Ctrl + W (as if my keyboard was forced to QWERTY).
The Z and W keys are reversed between QWERTY and AZERTY.
The weirdest thing is that I don't have the problem on osu!(stable).
I think the problem is related to this ppy/osu#11143.
P.-S I don't have the problem when I write text in osu! or when I maps my keys in the key configuration.
EDIT:
The issue seems come from the InputKey.cs which hard-codes values.The text was updated successfully, but these errors were encountered: