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

    Changing two buttons in the retroarch.cfg will not work

    Scheduled Pinned Locked Moved Help and Support
    buttons layout
    7 Posts 2 Posters 472 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.
    • top-specciT
      top-specci
      last edited by top-specci

      Hi,
      I try to change two buttons (X with the Y button) in the retroarch.cfg file, but it will not work, the change take not effect.

      I copy the file to Windows, change the enty, copy the file back, restart Emulationstation but still the old layout seems to work.
      I restart whole RaspberryPie, same (no change from the buttons)

      These are the lines, from /opt/retropie/configs/all/retroarch.cfg :

      ...
      input_player1_x = "a"
      input_player1_x_axis = "nul"
      input_player1_x_btn = "nul"
      input_player1_x_mbtn = "nul"
      ...
      input_player1_y = "s"
      input_player1_y_axis = "nul"
      input_player1_y_btn = "nul"
      input_player1_y_mbtn = "nul"
      

      Is there a misunderstanding or a mistake from my side,
      I thought Retropie Emulators will take these informations for button layout ...

      I have no Emulator specific key-configs in the subfolders!

      Only standard entries are there, here .i.e. in mame-libretro:

      # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
      input_remapping_directory = "/opt/retropie/configs/mame-libretro/"
      # video_smooth = ""
      # video_shader_enable = ""
      input_overlay_enable = "true"
      #include "/opt/retropie/configs/all/retroarch.cfg"
      
      
      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        You're changing the button mapping for a keyboard type input - if you expect that buttons on the gamepad to work differently, then this is why they're not.

        top-specciT 1 Reply Last reply Reply Quote 0
        • top-specciT
          top-specci @mitu
          last edited by

          @mitu Ok, uppps...

          And where can I find the layout configuration file from the phy. buttons I have defined?

          thx!

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

            If you want to remap the buttons, then use the Core Input Remapping menu in the RGUI - https://retropie.org.uk/docs/RetroArch-Configuration/#core-input-remapping. No need to edit files and re-configure the controllers globally.

            top-specciT 1 Reply Last reply Reply Quote 0
            • top-specciT
              top-specci @mitu
              last edited by

              @mitu Ok, I will check this.

              But in my case, I just want to switch 2 Buttons globally, is there no "simple" config file I can edit and change two lines ?

              Same as I reconfigure the joystick new (in principle I want to prevent this step, so my posting here)

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

                Your gamepad is configured in \\retropie\configs\all\retroarch-joypads, it has its own configuration file. You can change it there, but it's not so straightforward since the mappings are just some numbers.

                EDIT: you get the same result if you re-map your input in Emulationstation.

                1 Reply Last reply Reply Quote 0
                • top-specciT
                  top-specci
                  last edited by

                  Thanks, this was the file I'm looking for ...

                  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.