Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › How to configure a controller on RetroPie?
- This topic has 10 replies, 6 voices, and was last updated 9 years, 8 months ago by cosmicity.
-
AuthorPosts
-
07/27/2014 at 23:36 #20596melaoParticipant
Hi I have installed the RetroPie image and I do not know where to configure the controller.
I have a USB arcade controller and Emulation Station is able to find the controller and I am able to control the UI with the controller. But as soon as I start an emulator the keyboard becomes the controller.
How can I map let’s say, controller 1 to the USB controller rather than the keyboard?07/28/2014 at 06:14 #20685flipbugParticipantQuit Emulationstation by pressing your menu button (on the controller), going to quit, then select “Exit Emulationstation”.
Then type the following (CASE SENSITIVE!). Press Enter after each line.
sudo chown pi /opt/retropie/configs/all/retroarch.cfg
cd /opt/retropie/emulators/RetroArch/installdir/bin
sudo ./retroarch-joyconfig -j 0 >> /opt/retropie/configs/all/retroarch.cfg
The last command will launch a controller configuration tool. You have to input the buttons pretty quickly! If you make a mistake, after going through the program, press up to input the previous command.
Once you’re happy with the setup, reboot, or type:
emulationstation
Then load a game and see if it works. This affects every emulator that uses the Retroarch cores. MAME and Gameboy Advance have their own internal methods of assigning controls.
You can tweak the control scheme manually as well. Connect to the Pi and edit the following file: /opt/retropie/configs/all/retroarch.cfg
08/10/2014 at 02:24 #29592melaoParticipantHi it worked!
Thanks for the help!Now, where do i configure the MAME controls?
I bought a Raspberry PI to do three things, Arcade, XBMC and a simple NAS.
XBMC and NAS+DLNA Server are working flawlessly. The arcade one still is a project under construction, but i am not giving up.
Attached you can see the setup now. My plan is to buy another Pi and put it inside the arcade controller, which is huge :)01/08/2015 at 12:44 #84791chitoParticipantI have a few different controllers I want to use with my retropie. Not sure ifits possible… or at least different emulators to work with different controllers.
I bought 2 sega genesis controllers
2 snes controllers
and ive got 4 usb xarcade controllersHow do I set up all these different controllers per system?
01/08/2015 at 22:13 #84814FloobMemberYou can use the retroarch.cfg in /opt/retropie/configs/{systename}/
This sets the controls per console. You can find the button codes with the autoconfig
01/09/2015 at 00:02 #84823chitoParticipantAwesome thanks. Ill have a play with it.
seems people are having trouble with 6 button controllers for the genesis. Hopefully I get it to work01/24/2015 at 10:42 #85847chitoParticipantHow do u setup a 2nd usb controller? i can get the first one to work but not the second
i changed the line
sudo ./retroarch-joyconfig -j 0 >> /opt/retropie/configs/all/retroarch.cfg
to
sudo ./retroarch-joyconfig -j 1 >> /opt/retropie/configs/all/retroarch.cfgdid the whole thing and it still didnt work
01/24/2015 at 11:36 #85849FloobMemberWell I’m pretty sure those lines will append/fix your joypads in the retroarch.cfg so you would always need to use them for all the systems. In the video below I suggest just using the auto procedure instead.
You can of course hardcode them in the retroarch.cfg – if you attach the file I could look at it for any obvious errors.
01/31/2015 at 06:11 #86198chitoParticipantThanks heaps finaly got around to working on this and that video was exactly what i needed. Now to just config a 6 button for genesis games and then im done :)
01/31/2015 at 08:12 #86206sncboom2kParticipantMelao – press TAB while in a MAME game – that will take you to the settings menu. You can map your controller there. If it does not save your mappings (meaning they are gone the next time you open a game in mame) – ensure you have a CFG folder (just cfg) in your configs folder for mame4all.
Good luck!
03/02/2015 at 03:47 #89789cosmicityParticipantHey there. I’m admit that I’m not terribly experienced with coding. That said, I am having the issue describes here (tab controller settings don’t save in mame4all). I’ve figured out enough to be able to look and see that indeed I don’t have a CFG file in my configs for mame4all. Is there a line of code I could type to create one? Any help is most appreciated!
[quote=86206]If it does not save your mappings (meaning they are gone the next time you open a game in mame) – ensure you have a CFG folder (just cfg) in your configs folder for mame4all.
[/quote] -
AuthorPosts
- The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.