Multiple Controllers; set USB port per emu?
-
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!
-
@mlengland
You can try this tool:
https://github.com/meleu/RetroPie-joystick-selection -
@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!
-
@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
-
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.
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.