Setting up PS3 controllers on Retropie (Gasia/ Shanwan clones) Pi2. Since I wanted to use my PS3 controller at the same time as my BT keyboard and mouse, I started to work on the patched bluez version. All the axis including the tilt+accel. Unfortunately, it doesnt work with bluez. I managed to connect wirelessly with retropie.

Archived

Setting up ps3 controller for bluetooth

I'm hoping someone can help me here. I'm tearing my hair out!

I have successfully set up my pi with retropie (yay!) And it works like a dream. Even the PS3 controller works fine - when wired in.

But, dyou think I can get it to register with BT? NO WAY! I don't even know if I'm doing it wrong or right.

I go to the BT setup, register, do an unplug/replug dance, then select one of 5 seemingly random options (DisplayYesNo etc). Always get an error.

I'm I going about it wrong?

Any help would be appreciated. I'm gonna throw it out the window!!!

Thanks

100% Upvoted

While building my Raspberry Pi retro gaming centreHow to Install Game Emulators on the Raspberry PiHow to Install Game Emulators on the Raspberry PiDesktop computer, media center, an integral part of a budget space program - is there no end to the versatility of the Raspberry Pi? Seemingly not – because it also does games.Read More I ran into some problems with configuring game controllers.

The challenges were straightforward. Would I use my Xbox 360 controller, or resort to a pair of basic USB controllers for two player gaming?

Establishing a solution was difficult. In the end, despite my preferences, I opted to go for a pair of basic, retro-style game controllers which proved great for some classic two player arcade-style gaming.

Although to be honest the majority of my RetroPie use has been to enjoy some classic strategy titles that I could just as easily load up in DOSBox on my PC.

So, how did I deal with setting up a two player gaming profile on my RetroPie, and how easy is it to add an Xbox 360 controller?

Advantages of a Modern Game Controller

Although retro gaming is fun, the controllers often suck. Back in the day, I would regularly go through several joysticks a year, including the hard-wearing, metal shafted two button types (the Competition Pro and similar).

As for two-hand controllers, I found them unreliable and flimsy, probably due to the lack of microswitches in favour of blister switches.

Download

Clearly there is a distinct advantage in using an Xbox 360 controller (or similar) in place of the retro alternatives, from ergonomic comfort to improved reliability.

Setting Up Xbox Game Controllers On The Raspberry Pi

Ps3 Controller Driver X64

While it wasn’t my final choice, setting up the Xbox 360 controller proved far simpler than I had envisaged.

If you’ve checked the previous guide on installing and setting up a RetroPie system, you’ll know that the configuration file can be edited so that different controllers can be added. Incidentally, adding an Xbox 360 controller to a Linux systemConnect Your Xbox 360 Controller To Your Linux Gaming RigConnect Your Xbox 360 Controller To Your Linux Gaming RigLinux gaming rigs? Yup, they’re happening. With Valve’s Steam on Linux and a forthcoming Valve Steambox using Steam to run Linux games, the future is looking up for gaming on Linux. You can even install...Read More isn’t all that unusual.

To install the Xbox 360 controller driver, you will need to exit EmulationStation from the navigation menu and enter the following in the command line:

Driver

Following this, edit /etc/rc.local, adding

This ensures that the driver launches when the computer boots. Note the use of “–wid” in the instruction, which is for wireless controllers. Change it to –id for wired controllers.

Ps3 controller pc download

Following this, enter

While in this directory, input the following command:

You should increase digits by factor of 1 for each additional controller. If entered correctly, the resulting files should be added to retroarch.cfg:

You can then save and reboot to use your Xbox 360 controller.

How To Set Up Dual Controllers

There is one clear reason why you might use more than one controller – to enjoy multiplayer gaming.

While it is possible to use a keyboard and a USB controller, rather than two controllers, you will find that configuring a pair of different devices is difficult. For the best results (and to avoid configuration issues), you should use two identical controllers. If you want more than this, then you will need to use a powered USB hub.

Begin by opening the retroarch.cfg file via FTP (or by running Raspbian and browsing to RetroPie > Configs > All) and find this line:

Check the lines that follow, and then copy them, down to the last in that section. After the last line, leave a blank line and then paste the selection. You’ve duplicated the first controller profile, but you will need to edit the new block of code so that each instance of “player1” now reads “player2”

Here’s an example. The first two lines of the pasted segment should read:

Repeat until you reach the end of the copied code, then save and close.

Exit Games Using Your Controllers

The default method for exiting a game in EmulationStation is by restarting your Raspberry Pi – something that can corrupt the SD card3 Reasons Why Your Raspberry Pi Doesn't Work Properly3 Reasons Why Your Raspberry Pi Doesn't Work ProperlyI've been living with the Raspberry Pi for several months now, and have found this astonishing little computer to be even more amazing than expected. Despite its diminutive dimensions, the Raspberry Pi is as fruity...Read More as this is only possible in this scenario by removing the power cable.

To overcome this, a workaround exists maps an exit option to your game controller.

You’ll need to edit the retroarch.cfg file to do this, adding the following code:

You will need to check the retroarch.cfg file to identify the buttons you want to use here. Obviously you don’t want to exit games using the usual controller buttons – instead, you should be looking for the ones that relate to the buttons in the centre of the controller, perhaps labelled “menu” or “start”.

Download Ps3 Controller Driver Retropie Pc

Once you know how these buttons are numbered in the config file, replace “X” and “Y” with the corresponding numbers.

You can then save the file and exit to apply the changes.

Playstation Controller Download

Conclusion: If You’re Going to Play Retro, Do It Properly

The tips here should help you get on the retro gaming trail in style on your RetroPie device, but for the absolute classic gaming experience you might want to consider utilizing (or building!) an all-in-one multi-button gaming device to replicate those found on the old arcade cabinets.

Whichever your controller solution, make sure you give it a few test runs before “gaming in anger” – and let us know how you get on, and what controller options you decide upon.

Explore more about: Game Controller, Raspberry Pi.

Ps3 Controller Driver For Pc

  1. Thank you, very informative.

  2. when I punch in 'cd ~/RetroPie/emulators/RetroArch/tools'
    It says 'No such file or directory'

    I know I have Xboxdrv, and obviously I have Retro Pie set up and functioning. Any ideas? Thanks!

    • After doing some digging, the folder 'emulators' is not where it should be. In fact, I can't find it. My Sega 32x emulator works just fine, so I'm sure there are emulators installed somewhere on this thing. Also, I'm using Retro Pie 2.3 if that info helps.

    • try
      cd /opt/retropie/emulators/retroarch

  3. I was wondering if you could add a 3rd and 4th controller in this way?

  4. For the noobs amongst use I would just like to point out that when you add the xboxdrv command to rc.local make sure it is BEFORE exit 0 or it does not work.

    Makes sense now but as a total linux noob I could not understand why it was not loading.

  5. Nice writeup! I am attempting to use a Logitech F310 controller with my rPi and am running into some major roadblocks--even though the xboxdrv function apparently in theory works with this controller. While the rPi sees the controller when it's in the X mode (per lsusb), when I run the xboxdrv command you list above, I get a 'no xbox controller connected' error. Any ideas?

  6. Is there anyway to install the drivers from a USB memory stick? Long story short, my Pi hasn't got an internet connection. I have located the four files that's needed for the driver installation.

  7. Have you considered the wireless Xbox 360 controller or is that a whole different ballgame?