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

    ANSWERED: Button remapping (general & specific questions)

    Scheduled Pinned Locked Moved Help and Support
    xbox360controllerconfigretroarch.cfgretroarch
    13 Posts 4 Posters 13.4k 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.
    • polishzeusP
      polishzeus
      last edited by polishzeus

      Question 1
      Here is my general understanding of the hierarchy remapping buttons. I'd love to know if others agree or if there is something I'm missing. I have been using the Retropi Github Wiki as my guide. I feel like this RetroPie Forum Post about Hokeys circles around it but I could use clarification.

      • Global settings = baseline of all controls
        • Emulator settings = overwrites Global for each gaming system
          • Game settings = overwrites global & emulator for specific game

      Question 2
      I have wireless xbox 360 controllers and want to do a switch of the a & b buttons for NES. I've navigated to:

      /opt/retropie/configs/nes

      and am editing the retroarch.cfg file to the following:

      # Settings made here will only override settings in the global retroarch.cfg if$
      input_remapping_directory = "/opt/retropie/configs/nes/"
      input_player1_a_btn = "1"
      input_player1_b_btn = "0"   # repeat these two lines for players 2-4
      #include "/opt/retropie/configs/all/retroarch.cfg"
      

      Yet this doesn't work. Do I need to add this to make it work?

      input_player1_joypad_index = 0
      input_player2_joypad_index = 1
      input_player3_joypad_index = 2
      input_player4_joypad_index = 3
      

      Once I put those in there then Emulationstation prompts to remap controls upon reboot.
      Thanks for any input you can offer.

      edmaul69E 1 Reply Last reply Reply Quote 0
      • FloobF
        Floob
        last edited by

        Q1 - here is more info:
        https://retropie.org.uk/forum/topic/2199/specific-retroarch-emulator-settings-are-being-over-written-after-i-quit-the-game/24
        but yes, your hierarchy looks right (although when you say overwrite - it'll only overwrite the settings it has, so anything not specified will still be used.

        Q2 - Try this, Core Input Remapping:
        https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration#core-input-remapping

        Please read the Docs before asking a new question.
        RetroPie Help Guides: https://goo.gl/3gcNsT

        polishzeusP 1 Reply Last reply Reply Quote 0
        • polishzeusP
          polishzeus @Floob
          last edited by

          @Floob Your response was awesome. Thank you for taking the time to respond and hooking me up with the links.

          That image of the control hierarchy was incredibly helpful. I wonder if it could be placed in the RetroArch-Configuration page you linked?

          I enjoy working via the command line but you made me realize that I can follow the UI steps to remap the inputs and then just look to see what it changed in the config file.

          meleuM 1 Reply Last reply Reply Quote 0
          • meleuM
            meleu @polishzeus
            last edited by

            @polishzeus Complementing the information: doing what you suggested in your Question 2 is a bad idea because it will mess the buttons used to navigate through RGUI. The core input remapping is a better approach. ;-)

            • Useful topics
            • joystick-selection tool
            • rpie-art tool
            • achievements I made
            1 Reply Last reply Reply Quote 0
            • edmaul69E
              edmaul69 @polishzeus
              last edited by edmaul69

              @polishzeus when you set up your controller i think you set it up wrong. In emulationstation you arent supposed to set up a,b,x,y based on your controller. You are supposed to set it up based on a snes controller layout. You will find a lot of systems screwed up with it configured wrong. A and b are reversed on a snes controller and x and y are reversed.

              polishzeusP 1 Reply Last reply Reply Quote 0
              • polishzeusP
                polishzeus @edmaul69
                last edited by

                @edmaul69 said in ANSWERED: Button remapping (general & specific questions):

                @polishzeus when you set up your controller i think you set it up wrong. In emulationstation you arent supposed to set up a,b,x,y based on your controller. You are supposed to set it up based on a snes controller layout. You will find a lot of systems screwed up with it configured wrong. A and b are reversed on a snes controller and x and y are reversed.

                That would also work but I wanted to reserve the option to put ps1 and/or psp games on the Retropie and I'd want the buttons to match the controller I'm using. But as I said, that's a good idea

                @meleu Yeah, when I first experimented with putting that stuff in, I quickly realized that this was the wrong way to go and backed out (then came to these forums).

                Thanks again to all for responding. I can't believe it took me this long to join these forums!

                edmaul69E 2 Replies Last reply Reply Quote 0
                • edmaul69E
                  edmaul69 @polishzeus
                  last edited by edmaul69

                  @polishzeus they wont match on psx and psp unless you set it up like a snes controller. Trust me it will come out right on the systems setting it up like a snes controller.

                  1 Reply Last reply Reply Quote 0
                  • edmaul69E
                    edmaul69 @polishzeus
                    last edited by

                    @polishzeus please look at this:
                    https://github.com/retropie/retropie-setup/wiki/retroarch-configuration

                    polishzeusP 1 Reply Last reply Reply Quote 0
                    • polishzeusP
                      polishzeus @edmaul69
                      last edited by

                      @edmaul69 I definitely see what you're saying. Since I've already gone through the (not-so-much) trouble of mapping the cores, I'll keep that in the back pocket. I'm not even sure I'll get around to putting psp games in there. So much NES, Sega, and SNES to devour before then!

                      edmaul69E 1 Reply Last reply Reply Quote 0
                      • edmaul69E
                        edmaul69 @polishzeus
                        last edited by

                        @polishzeus just so you know mapping the cores creates a headache when you want to add different types of controllers. The method i showed you makes using different controllers more universal

                        polishzeusP 1 Reply Last reply Reply Quote 0
                        • polishzeusP
                          polishzeus @edmaul69
                          last edited by

                          @edmaul69 Makes sense. Though I know I will only stick to the 360 wireless controllers indefinitely. Thanks again.

                          edmaul69E 1 Reply Last reply Reply Quote 0
                          • edmaul69E
                            edmaul69 @polishzeus
                            last edited by

                            @polishzeus at least you chose a controller worthy of being "the one"

                            polishzeusP 1 Reply Last reply Reply Quote 0
                            • polishzeusP
                              polishzeus @edmaul69
                              last edited by

                              @edmaul69 said in ANSWERED: Button remapping (general & specific questions):

                              @polishzeus at least you chose a controller worthy of being "the one"

                              It was love at first sight 😀

                              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.