RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Change default keyboard layout in Retroarch

    Scheduled Pinned Locked Moved Help and Support
    retroarchkeyboard
    5 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      janderclander14
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Try changing the input_keyboard_layout option in retroarch.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).

        J 1 Reply Last reply Reply Quote 1
        • J
          janderclander14 @mitu
          last edited by

          @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...

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @janderclander14
            last edited by

            Can be a bug, a cursory look through the code shows this settings is read, but not used.

            J 1 Reply Last reply Reply Quote 1
            • J
              janderclander14 @mitu
              last edited by

              @mitu Thanks for looking at it. I've opened an issue at Retroarch git, just in case

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              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.