Unity rebinded Keys names are wrong on azerty keyboard
So I have a working rebinder script, but the problem is when I want to display the rebinded keys names.
The code below returns the right names for a qwerty keyboard, but not for a azerty keyborad ! However, the bindings are correct, since the controls are working regardless of the keyboard layout. The only broken thing is the display, that is to say the value fed in the "UpdateText(string key)" void:
RebindSection[j].UpdateText(InputControlPath.ToHumanReadableString(
Actions[j].action.bindings[bindingIndex].effectivePath,
InputControlPath.HumanReadableStringOptions.OmitDevice));
Does anyone know how I can get the real name of the key and not the location of the key in us keyboard ?
Edit: I'm developing the game on ubuntu, And the script I wrote above works in the editor, but not in the builds...
In addition, InputSystem.onDeviceChange
is not triggered when I switch my keyboard layout on linux, but it does if I do it on windows... I really don't understand why