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

    Multiple Controllers; set USB port per emu?

    Scheduled Pinned Locked Moved Help and Support
    5 Posts 2 Posters 1.8k 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.
    • M
      mlengland
      last edited by

      Pi Model: 2

      RetroPie Version Used: 3.8.X

      Built From: SD Image

      USB Devices connected:

      • WiFi dongle
      • Keyboard dongle
      • USB Hub
      • 6 USB controllers

      Controller used:

      • 2 MAME-style USB joysticks w/ buttons
      • 2 NES USB
      • 2 SNES USB

      How to replicate the problem:

      I'd like to have all 6 controllers plugged in and each "set" of controllers associated with a specific emulator. So the NES controllers would become default when I started an NES rom.

      Right now I have the 2 MAME style joysticks/buttons in the first & second USB ports. When I'm in Emulation Station all 6 controllers work and appear to be mapped correctly.

      Once I enter a game the controllers default back to the joysticks/buttons. All 6 controllers appear at the bottom of the screen in yellow text once the game starts with the "configured in port" alert.

      The closest I've come is by editing the emu (system folder) retroarch.cfg file, specifically the input_player1_joypad_index = "0" line. For both player 1 & 2. But on boot, it still doesn't work. And pulling up the file again shows that it's been set back to default.

      Joysticks are plugged into port 0 & 1. The hub is in port 3. Then there are 4 ports on the hub.

      I've honestly searched & searched but I can't seem to nail down how to do what I'm trying to achieve. If I missed a thread, I truly apologize. Any help would be greatly appreciated!

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

        @mlengland
        You can try this tool:
        https://github.com/meleu/RetroPie-joystick-selection

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        M 1 Reply Last reply Reply Quote 2
        • M
          mlengland @meleu
          last edited by

          @meleu awesome, thank you so much. I won't have time to give it a go until later today, but I'll check back in once I do.

          I gave the page a quick glance, and that's pretty impressive this is your script. Looks like exactly what I need.

          Thanks again!

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

            @mlengland if you have any problem/suggestion, you can use this thread:

            https://retropie.org.uk/forum/topic/1167/here-is-a-way-to-select-input-for-retroarch-players-1-4

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

              The script that meleu mentions is a great solution to have the GUI. My issue was apparently everything was writing below the #include line in the cfg files.

              Once I moved my player joypad index lines above #include all was well.

              Thanks for those that took a look, and super thanks to @meleu for the help & feedback.

              1 Reply Last reply Reply Quote 1
              • 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.