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

    Desperate! Controllers (retrolink, ibuffalo and xin mo) config

    Scheduled Pinned Locked Moved Help and Support
    23 Posts 3 Posters 7.2k 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.
    • P
      PetroRie
      last edited by PetroRie

      You need to edit the retroarch.cfg for each emulator, and add the button mappings to them. Check this folder on your Pi:

      /opt/retropie/configs/

      Or you can change them via networkshare which is easier and faster, just go to this folder on your computer:

      \RETROPIE\configs

      Make sure you add the button mappings above the #include line.

      1 Reply Last reply Reply Quote 0
      • C
        chan
        last edited by

        i did that for nes and have 1 controller working but how to include 2 controllers?

        bot of them are the same. I configured both of them and have 2 .cfg files of nes
        nes1.cfg
        nes2.bak.cfg and they have the same buttons.
        How to include 2 players if they are the same?

        P 1 Reply Last reply Reply Quote 0
        • P
          PetroRie @chan
          last edited by PetroRie

          @chan said in Desperate! Controllers (retrolink, ibuffalo and xin mo) config:

          i did that for nes and have 1 controller working but how to include 2 controllers?

          bot of them are the same. I configured both of them and have 2 .cfg files of nes
          nes1.cfg
          nes2.bak.cfg and they have the same buttons.
          How to include 2 players if they are the same?

          That second file wont work. You can see the extention? It has two. Most likely the .BAK file is a backup file. Normally with these kind of files you just replace the .BAK extention with the extention of the original file (like .TXT in our case .CFG)

          Those files get generated by RetroPie when you configure the controllers for the first time. I think if you change it will mess everything up (I could be wrong because I never tested it). Just configure them trough RetroPie and see if there is a new file generated into that dir. Do it for both controllers.

          If the controllers are identical they should work on all ports.

          C 1 Reply Last reply Reply Quote 0
          • C
            chan @PetroRie
            last edited by

            @PetroRie
            Yes. i configured both controllers trought retropie so at /opt/config/all/joypads... appeared 2 files.
            nes.cfg and nes.bak.cfg.
            I didn´t made that copy, was retropie when configured the controllers, as same as snes controllers and xin-mo
            6 controllers works fine outside the emus.
            The problem is to make them work inside a specific emulator.

            For example, i can make one controller work with retroarch.cfg simply copy the lines of nes.cfg into it, but i have the problem taht is only one player working.

            Maybe i didnt explain myself in a correct way

            P 1 Reply Last reply Reply Quote 0
            • P
              PetroRie @chan
              last edited by Floob

              @chan You need to use the data from your nes1.cfg. So normally you have:

              input_a_btn = “0″
              

              We need to add _player1 right after input, so it looks like this:

              input_player1_a_btn = “0″
              

              And for player 2 you do the same, but use player2 instead of player1. Also add this:

              input_player1_joypad_index = “0″
              input_player2_joypad_index = “1″

              So it looks like this:

              input_player1_joypad_index = “0″
              input_player1_a_btn = “0″
              input_player1_b_btn = “1″
              input_player1_y_btn = “3″
              input_player1_x_btn = “2″
              
              input_player2_joypad_index = “1″
              input_player2_a_btn = “0″
              input_player2_b_btn = “1″
              input_player2_y_btn = “3″
              input_player2_x_btn = “2″
              

              You should should use the one from nes.cfg and add them to the retroarch.cfg of the emulator.

              C 1 Reply Last reply Reply Quote 0
              • C
                chan @PetroRie
                last edited by

                @PetroRie
                Ok will try this afternoon. but how retropie knows that input_player is for specified controller???
                Both cfgs have the same config (this question is for general understanding)

                P 1 Reply Last reply Reply Quote 0
                • P
                  PetroRie @chan
                  last edited by

                  @chan said in Desperate! Controllers (retrolink, ibuffalo and xin mo) config:

                  @PetroRie
                  Ok will try this afternoon. but how retropie knows that input_player is for specified controller???
                  Both cfgs have the same config (this question is for general understanding)

                  You'll going to use the NES controller for the NES emu right? That is why you need to add these codes to the retroarch.cfg of the NES emulator. Just go to:

                  \RETROPIE\configs

                  Check the NES file there should be a retroarch.cfg. Add the codes like I showed you (with the playerX syntax) and it should work.

                  1 Reply Last reply Reply Quote 0
                  • C
                    chan
                    last edited by Floob

                    Just updated with that info for nes

                    call to /opt/retropie/config/nes/retroarch.cfg on nes emu on line 373, line who is called :
                    joypad_autoconfig_dir = “/opt/retropie/configs/all/retroarch-joypads/USB Gamepad .cfg"

                    Into that file i wrote the config

                    input_player1_device = "USB Gamepad "
                    input_player1_driver = "udev"
                    input_player1_start_btn = "9"
                    input_player1_exit_emulator_btn = "9"
                    input_player1_up_axis = "-1"
                    input_player1_a_btn = "1"
                    input_player1_b_btn = "2"
                    input_player1_reset_btn = "2"
                    input_player1_down_axis = "+1"
                    input_player1_right_axis = "+0"
                    input_player1_state_slot_increase_axis = "+0"
                    input_player1_select_btn = "8"
                    input_player1_enable_hotkey_btn = "8"
                    input_player1_left_axis = "-0"
                    input_player1_state_slot_decrease_axis = "-0"
                    
                    input_player2_device = "USB Gamepad "
                    input_player2_driver = "udev"
                    input_player2_start_btn = "9"
                    input_player2_exit_emulator_btn = "9"
                    input_player2_up_axis = "-1"
                    input_player2_a_btn = "1"
                    input_player2_b_btn = "2"
                    input_player2_reset_btn = "2"
                    input_player2_down_axis = "+1"
                    input_player2_right_axis = "+0"
                    input_player2_state_slot_increase_axis = "+0"
                    input_player2_select_btn = "8"
                    input_player2_enable_hotkey_btn = "8"
                    input_player2_left_axis = "-0"
                    input_player2_state_slot_decrease_axis = "-0"
                    

                    that doesnt work..... :(

                    if one config only

                    input_device = "USB Gamepad "
                    input_driver = "udev"
                    input_start_btn = "9"
                    input_exit_emulator_btn = "9"
                    ...
                    

                    Works perfect, but only one controller.
                    Maybe i am configuring something in a wrong way :p

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      chan @chan
                      last edited by Floob

                      @chan tried with only retroarch on nes emu as u said like this

                      # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
                      
                      input_remapping_directory = "/opt/retropie/configs/nes/"
                      
                      input_player1_device = "USB Gamepad "
                      input_player1_driver = "udev"
                      input_player1_start_btn = "9"
                      input_player1_exit_emulator_btn = "9"
                      input_player1_up_axis = "-1"
                      input_player1_a_btn = "1"
                      input_player1_b_btn = "2"
                      input_player1_reset_btn = "2"
                      input_player1_down_axis = "+1"
                      input_player1_right_axis = "+0"
                      input_player1_state_slot_increase_axis = "+0"
                      input_player1_select_btn = "8"
                      input_player1_enable_hotkey_btn = "8"
                      input_player1_left_axis = "-0"
                      input_player1_state_slot_decrease_axis = "-0"
                      
                      input_player2_device = "USB Gamepad "
                      input_player2_driver = "udev"
                      input_player2_start_btn = "9"
                      input_player2_exit_emulator_btn = "9"
                      input_player2_up_axis = "-1"
                      input_player2_a_btn = "1"
                      input_player2_b_btn = "2"
                      input_player2_reset_btn = "2"
                      input_player2_down_axis = "+1"
                      input_player2_right_axis = "+0"
                      input_player2_state_slot_increase_axis = "+0"
                      input_player2_select_btn = "8"
                      input_player2_enable_hotkey_btn = "8"
                      input_player2_left_axis = "-0"
                      input_player2_state_slot_decrease_axis = "-0"
                      
                      #include "/opt/retropie/configs/all/retroarch.cfg"
                      

                      No luck also

                      1 Reply Last reply Reply Quote 0
                      • C
                        chan
                        last edited by

                        There is no solution to my problem?

                        1 Reply Last reply Reply Quote 0
                        • C
                          chan
                          last edited by

                          UP!!!

                          Please help me.... :(
                          i have one controller collecting a lot of dust

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

                            Tell me if I understand correctly: you want to remap the buttons of your controllers according to the emulator.

                            If this is your problem, maybe you can solve it reading this parte of the wiki: https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration#core-input-remapping

                            It's very easy and user-friendly.

                            • Useful topics
                            • joystick-selection tool
                            • rpie-art tool
                            • achievements I made
                            1 Reply Last reply Reply Quote 0
                            • meleuM
                              meleu
                              last edited by

                              Oh sorry... I think you want another thing...

                              The problem is that i dont know how to configure specific controller for specific emus.

                              Are you using bluetooth or USB-wired controllers?

                              • Useful topics
                              • joystick-selection tool
                              • rpie-art tool
                              • achievements I made
                              1 Reply Last reply Reply Quote 0
                              • C
                                chan
                                last edited by chan

                                usb wired controller.
                                Ibuffalo and retrolink

                                Im trying to get the 2 controllers working in their emu

                                Ibuffalo (snes controlleres) for snes. and retrolink for nes, but i only have luck with one controller

                                i tried to follow the github instructions but with no luck, or maybe, for sure, im doing something wrong

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

                                  @chan

                                  With USB controllers, you can configure it on the systems specific retroarch.cfg file, as described in the wiki, and allways take care to plug the controllers on specific ports.

                                  But if you want something more dynamic and user-friendly, you can try it:
                                  https://github.com/meleu/RetroPie-joystick-selection

                                  • Useful topics
                                  • joystick-selection tool
                                  • rpie-art tool
                                  • achievements I made
                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    chan
                                    last edited by

                                    i configured in retroarch.
                                    one was sucesfully configured but when i tried to insert 2 controllers they failed.
                                    See the putty i pasted.

                                    With that script it only needs to configure the controllers outside?
                                    i mean to configure via config-input in retropie menu

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

                                      @chan said in Desperate! Controllers (retrolink, ibuffalo and xin mo) config:

                                      i configured in retroarch.
                                      one was sucesfully configured but when i tried to insert 2 controllers they failed.
                                      See the putty i pasted.

                                      It seems that your problem is with the indexes. You need to know the indexes of your controllers and then configure it in retroarch.cfg, as mentioned by @PetroRie . If you don't know what I'm talking about, that script is for you. ;-)

                                      With that script it only needs to configure the controllers outside?
                                      i mean to configure via config-input in retropie menu

                                      Yes.

                                      • Useful topics
                                      • joystick-selection tool
                                      • rpie-art tool
                                      • achievements I made
                                      C 1 Reply Last reply Reply Quote 0
                                      • C
                                        chan @meleu
                                        last edited by

                                        @meleu said in Desperate! Controllers (retrolink, ibuffalo and xin mo) config:

                                        @chan said in Desperate! Controllers (retrolink, ibuffalo and xin mo) config:

                                        i configured in retroarch.
                                        one was sucesfully configured but when i tried to insert 2 controllers they failed.
                                        See the putty i pasted.

                                        It seems that your problem is with the indexes. You need to know the indexes of your controllers and then configure it in retroarch.cfg, as mentioned by @PetroRie . If you don't know what I'm talking about, that script is for you. ;-)

                                        With that script it only needs to configure the controllers outside?
                                        i mean to configure via config-input in retropie menu

                                        Yes.

                                        Hi meleu.

                                        I installed that. but i dont know how it works.
                                        I entered a game and i didnt know how to use.
                                        Controllers still not response

                                        Maybe need to presh f4 or f1 or something like that?

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

                                          @chan
                                          After install it, go to the RetroPie menu in emulationstation and execute the "joystick selection".

                                          • Useful topics
                                          • joystick-selection tool
                                          • rpie-art tool
                                          • achievements I made
                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            chan
                                            last edited by

                                            Meleu.

                                            Thanks for your help.!!
                                            Now i can play with all the controllers.
                                            Yesterday i tested it and it works with the sxript, he only "bad thing" is that the second usb gamepad is not good configured so button b exit the game :p

                                            I will burn the image again and make eerything again just to make ot run good.

                                            Thanks for your help.

                                            PD: I suppose that if this script mdify retroarch, then i can copy the lines and insert into the specific emulators.
                                            Im correct?

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