Change default keyboard layout in Retroarch
-
Hi!
I was using direct keyboard input in some emulators (mainly old computers) via Retroarch and realized that the keyboard layout is set in US English, even though I use a Spanish keyboard.
The Spanish layout of my keyboard works fine in the linux terminal (I configured it in this way when installing Retropie), and also in Emulationstation (for example, when editing custom collection names).
So, it seems Retroarch requires setting its own keyboard layout independently of the OS configuration. However, I didn't found any option in the Retroarch GUI to change this setting. Do you know how to set this, even if it requires manually editing a config file?
I'm using the default udev input drivers.
Thanks!
-
Try changing the
input_keyboard_layout
option inretroarch.cfg
- I don't think there's any UI to change it. From the default config:# Keyboard layout for input driver if applicable (udev/evdev for now). # Syntax is either just layout (e.g. "no"), or a layout and variant separated with colon ("no:nodeadkeys"). # input_keyboard_layout =
You may use the same value as the one you've chosen for the terminal - you can find it in
/etc/default/keyboard
(XKBLAYOUT). -
@mitu Thanks, that certainly looked like the appropriate option. However, no mater the keyboard code I input ('es' for Spanish), it still uses the default US layout. As a matter of fact, the option was uncommented but empty. Maybe it is not supported anymore, since there is no option in the GUI to change it...
-
Can be a bug, a cursory look through the code shows this settings is read, but not used.
-
@mitu Thanks for looking at it. I've opened an issue at Retroarch git, just in case
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.