# Adding 2nd controller for MAME?

**URL:** <https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879>\
**Category:** Picade\
**Created:** [August 18, 2016, 8:36pm UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879 "2016-08-18T20:36:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmcgrath](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pmcgrath](https://forums.pimoroni.com/u/pmcgrath)\
**Post date:** [August 18, 2016, 8:36pm UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879/1 "2016-08-18T20:36:41Z")

</div>

Hi, I have looked in the Retropie Wiki and forums, but can’t see (or understand) if this is possible.

Can I attach a USB controller so that I can play Mortal Kombat or Street Fighter as 2 player with someone using the Picade joystick/buttons as Player 1 and Player 2 on the USB controller? I tried the TAB function within MAME, but each time I re-map the buttons for Player 2 manually it comes up as “J1 JoyButton x”

Is there a way to make this “J2 JoyButton x” as some of the defaults on MAME are already J2 but the buttons are incorrect.

Hope that makes sense and someone knows the answer.

Thanks

---

<div class="post-metadata">

**Author:** ![angel77lopez](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/angel77lopez/32/1384_2.png) [@angel77lopez](https://forums.pimoroni.com/u/angel77lopez)\
**Post date:** [August 19, 2016, 12:12am UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879/2 "2016-08-19T00:12:32Z")

</div>

I added a usb port for this purpose. I then connected a usb extender cord to plug into the back from the pi. I then went into the retropie menu and selected “RetroArch”. In there I was able to set up the second controller which is my usb controller for the second player. It worked just fine. I Play Gyromite on Nintendo so I can use the second controller to bring down the pillars.

![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/9/98d0e332bd99fd1c603250ba59c480cde2c311be.jpg) ![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/8/8dff917fc565dc5a194290396ad70d94b1def88b.jpg)

You will have to go into Retroarch then Settings\>Input. I then set max players to 2. The 1st of course is the Picade button setup. You just need to configure the 2nd so go down to “Input User 2 Binds”. After you done make sure you go into configuration and turn on the “Save Configuration On Exit” then you can Quit Retroarch.

![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/f/f2df8367310f324188d076fe235bf93b4d889e9d.jpg)

 ![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/c/c09d62d5db8ea65ebc03c6879e54b488cb77ace0.jpg) ![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/7/7834e4a4ab821ccb42b97e4ba5bd9c08ec34ccc3.jpg) ![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/a/aad49409d61399f1e7b5a7b1103107e4c523d1c7.jpg)

---

<div class="post-metadata">

**Author:** ![pmcgrath](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pmcgrath](https://forums.pimoroni.com/u/pmcgrath)\
**Post date:** [August 19, 2016, 6:09am UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879/3 "2016-08-19T06:09:19Z")

</div>

OK, thanks I’ll give that a go tonight. Is there a reason why you used a USB extender? I have two spare ports in the Pi3 and using one of these to plug in the controller. Shouldn’t make a difference, right?

---

<div class="post-metadata">

**Author:** ![angel77lopez](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/angel77lopez/32/1384_2.png) [@angel77lopez](https://forums.pimoroni.com/u/angel77lopez)\
**Post date:** [August 19, 2016, 10:05am UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879/4 "2016-08-19T10:05:03Z")

</div>

I just didn’t want to have the cord coming from the back outer door. Just  
too messy. All I do now is just pug right into the front. Plus it’s a cool  
mod.

---

<div class="post-metadata">

**Author:** ![pmcgrath](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pmcgrath](https://forums.pimoroni.com/u/pmcgrath)\
**Post date:** [August 19, 2016, 11:54am UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879/5 "2016-08-19T11:54:10Z")

</div>

Definitely looks good. I have a Wii U Pro controller that I managed to previously connect through bluetooth, but now for some reason doesn’t want to connect anymore. That would be a better option for me.

---

<div class="post-metadata">

**Author:** ![pmcgrath](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pmcgrath](https://forums.pimoroni.com/u/pmcgrath)\
**Post date:** [August 22, 2016, 1:26pm UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879/6 "2016-08-22T13:26:29Z")

</div>

Update - Got things working! Basically re-installed to the new Retropie 4.0 and this seems to have reset the bluetooth controller. Managed to get my Wii U Pro controller connecting again and using the retroarch settings, have it as the Player 2 controller. Thanks for your help

---

<div class="post-metadata">

**Author:** ![angel77lopez](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/angel77lopez/32/1384_2.png) [@angel77lopez](https://forums.pimoroni.com/u/angel77lopez)\
**Post date:** [August 22, 2016, 2:10pm UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879/7 "2016-08-22T14:10:32Z")

</div>

So 4.0 been good for you?

---

<div class="post-metadata">

**Author:** ![pmcgrath](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pmcgrath](https://forums.pimoroni.com/u/pmcgrath)\
**Post date:** [August 22, 2016, 2:15pm UTC](https://forums.pimoroni.com/t/adding-2nd-controller-for-mame/2879/8 "2016-08-22T14:15:04Z")

</div>

Yes, so far. Everything seems to work as before
