Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › Set up different controllers for different emulators?
Tagged: controller
- This topic has 4 replies, 2 voices, and was last updated 11 years, 5 months ago by jplaj.
-
AuthorPosts
-
06/30/2013 at 04:35 #2304jplajParticipant
I know it’s possible to override the button mapping using the individual emulators’ config files, but is it possible to use a different controller entirely?
So far, it seems like running retroarch-joyconfig binds the system to a specific controller. Is it possible to set it up so, for example, I could use a playstation controller with PSX and an SNES controller with everything else?
Thanks for the help!
07/04/2013 at 15:15 #2354teeth03Participanteach controller should have an index you can switch in the configuration, I’m not an expert, but you might have to have all the controllers plugged in at the same time for it to work.
07/11/2013 at 22:44 #2446jplajParticipantHi, thanks for the help. I finally got all the equipment I needed to test this. Here’s what happened.
All equipment I’m using has been confirmed to work individually.
One powered hub.
Two retro-link USB SNES controllers (I’ve been using these ones for months)
Two PS2 to USB adapters
Two PS2 Sony-brand controllers.I ran the es input configuration with all four controllers running through the hub. The two SNES controllers were used for players one and two. The PS2 controllers were for players three and four. I’m assuming that means they’re indext 0, 1, 2, 3 respectively.
Ran joyconfig once with the SNES controller, once with the PS2 controller. Neither one would work through the hub, so they were plugged in directly to the Raspberry Pi when I did that.
I wrote down the outputs, then manually entered them in retroarch.cfg, with the SNES inputs for players one (index 0) and two (index 1) and the PS2 inputs for players three and four (2 and 3).
I altered the retroarch.cfg file in the PSX folder to read:
input_player1_joypad_index = 2 input_player2_joypad_index = 3 input_player3_joypad_index = 0 input_player4_joypad_index = 1
Here are my results:
All four controllers work in emulationstation, whether running through the hub or plugged into the pi directly.
The SNES controllers work in-game, but only if they were plugged directly into the pi when it boots up. Snes controllers have control over PSX games (which would be fine except for R2 and L2 buttons), despite the change in index. (I even tried overriding the ‘input_player1_btn’ lines to match the PS2 controls)
The PS2 controllers don’t work in-game at all.
[Ideally, I’d like to not have to use the hub at all. I’ll never need more than two players, so I’ll either boot up with the PS2 controllers for PSX, or the SNES controllers for everything else. However, I’m not adverse to using the hub if there are no other options]
Thanks for your help, as always.
07/13/2013 at 14:17 #2458teeth03ParticipantI kind of have the same problem with devices in my powered hub, I’m wondering if the hub isn’t providing enough power and I need to get a better one.
Mine is like a 3-4 year old 7 port Rosewill one from NewEgg
07/13/2013 at 18:04 #2460jplajParticipantThe power rating could be an issue. I’ve also recently found out that with the hub plugged in, I can’t hot swap controllers. Oddly enough, the joypad index seems to be arbitrarily linked to specific ports on my hub. I did finally get everything to work, but all four controllers must be plugged in when booting, and I ran joyconfig for indexes 0 – 4, but the first time it would only register three of my controllers. I had to reboot with the fourth controller in a different port, then it worked fine.
-
AuthorPosts
- The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.