Homepage › Forums › RetroPie Project › Controller Configuration in RetroPie › Arcade Cabinet – Disable Joystick controls / switch to PS3 controllers
- This topic has 12 replies, 7 voices, and was last updated 8 years, 8 months ago by thorstenh.
-
AuthorPosts
-
02/07/2016 at 15:20 #116418pohlinger31Participant
Hello,
I’m working on finishing up building an arcade cabinet with a retropie setup. The cabinet controls are a two player joystick and button configuration.
My question is, is it possible to disable the joystick controls easily within retropie, and switch over to using PS3 controllers? I want to use the PS3 controllers for games that aren’t conducive to arcade gaming. If I don’t disable the joysticks somehow, the ps3 controllers link up as player 3 and player 4, which isn’t going to work. The only method I could think of now is to just unplug the USB for the joystick and button controls, but it would be great if there was a software switch I could make to turn off the joysticks, and then use the PS3 controllers.
Thanks for the help!
~Phil02/07/2016 at 16:39 #116424AnonymousInactiveI’m planning a similar bartop arcade with a dual arcade joystick/button setup and I’d like to be able to plug USB controllers in and have them become player 1/2 as well. I’ve been worried about the problems you’re describing and look forward to hearing others’ solutions.
02/08/2016 at 14:10 #116482hoofaParticipantI’ll third that! Also very keen to understand this, at the moment i’m doing this by changing my retroarch config file via a network connection
02/08/2016 at 14:31 #116487hoofaParticipantI’ll third that! Also very keen to understand this, at the moment i’m doing this by changing my retroarch config file via a network connection
02/11/2016 at 18:18 #116767hijinksensueParticipantI’m in the exact same boat. I have a bartop machine running with the Xin-Mo dual arcade controls and I want to be able to plug in two wired Gravis Gamepads to play Sega, NES, SNES games, etc. Very interested to see if anyone has a solution for this.
02/16/2016 at 17:25 #117172pohlinger31ParticipantIt would be great if we could flip a physical switch on the outside of the cabinet to activate a software switch – If not that then a menu setting within the retropie settings would do just fine as well! :)
02/16/2016 at 17:36 #117174labelwhoreParticipant[quote=117172]It would be great if we could flip a physical switch on the outside of the cabinet to activate a software switch – If not that then a menu setting within the retropie settings would do just fine as well!
[/quote]It wouldn’t be hard to do just that, assuming you can start the arcade joystick drivers from command line. Just use a python script that starts via
/etc/rc.local
and evaluate the state of a switch connected to the gpio and start one driver or the other based on that evaluation.Here’s a little info on working with the gpio. Obviously, you’d want a toggle switch here rather than a tactile switch.
02/16/2016 at 17:36 #117175dankcushionsParticipanti think this sort of thing would only be solved by retroarch/libretro itself. you should ask on the forums but it looks like people have already asked and it’s a no: http://libretro.com/forums/showthread.php?t=5041
you could also log it as a request on their github: https://github.com/libretro/RetroArch/issues
i think you could actually use a physical switch if you were so inclined. you’d need something that switches from one USB device to another, entirely breaking the circuit. i think things like this already exist for printers. might just work??
02/16/2016 at 17:39 #117176labelwhoreParticipantAlternatively, you could make controllers 3 and 4 (ports 2 and 3) the default controllers for specific emulators via retroarch.cfg for those emulators.
^^ there’s more than one way to skin a cat. :P
02/16/2016 at 17:41 #117177labelwhoreParticipant[quote=117175]i think this sort of thing would only be solved by retroarch/libretro itself. you should ask on the forums but it looks like people have already asked and it’s a no: http://libretro.com/forums/showthread.php?t=5041
you could also log it as a request on their github: https://github.com/libretro/RetroArch/issues
i think you could actually use a physical switch if you were so inclined. you’d need something that switches from one USB device to another, entirely breaking the circuit. i think things like this already exist for printers. might just work??
[/quote]
You’d still need to stop the drivers and start the correct ones. I think my proposed solution via the gpio is probably the best option. Although, you’d probably be able to do all of that without rebooting, it would just require more code.02/16/2016 at 18:08 #117190dankcushionsParticipantwhy would you need to stop drivers? a USB switcher would physically switch the connection from usb device 1 to usb device 2. retroarch is fine with hotswapping USB devices, if you have them configured – i do it all the time in games. no coding required. it’s all the same UDEV driver if you’re running usb controllers.
02/16/2016 at 18:31 #117194labelwhoreParticipantWell, nevermind then. :) I didn’t think hotswapping was supported.
02/22/2016 at 10:00 #117768thorstenhParticipantFew days ago, I tested RecalBox. Recalbox also uses Emulationstation and there was an easy function to select the order of the Controllers. It was all in the GUI, I could select which controller is player1, player2 and so on. Isn’t there a way to implement that in Retropie?
In my scenario I installed my Pi in an old SNES Case and I connected the original SNES Controller ports via Controlblock. The only problem is, that these controllers are always shown as connected, even if they aren’t plugged in. I have also 2 PS3 controllers that I want to use for N64 and PSX Games (or even for NES/SNES Games when I’m too lazy to plug the SNES Controllers in), but the SNES Controllers are always Player 1 and 2 and I’m just looking for an easy way to select the priority manually. -
AuthorPosts
- The forum ‘Controller Configuration in RetroPie’ is closed to new topics and replies.