PS3 controller on android phone/tablet using only linux (root required)

For a while I’ve been trying to play mobile games especially racing game on my tablet but it wasn’t the same as using a real controller. After a bit of googling I found a way to use a PS3 controller as a game pad on android.

If you look at all the tutorials online they all say you need use a windows box to change the Bluetooth mac address on the PS3 controller. I did find a program on Linux that will let you change the mac address but you need to download the source and Compile it to use.

But first you will need to make sure your device is rooted then head to the app store and search for “PS3 controller” then download the Sixaxis compatibility app to make sure that you device is compatible plus this will give you the mac address of your device.sixaxis

Once you have ran the app and its compatibility you need to mac address of the device and make a note of it on your computer for later.

Screenshot_2014-08-24-19-44-50

This is where it gets a little bit tricky. First you will need to download the source from HERE just copy and pasta it into a text file then save it somewhere as sixpair.c

Next you need to install some packages so copy and paste it into your terminal window

$ sudo apt-get install libusb-dev libusb-0.1-4

next open terminal and nevigate to the location that you saved your sixpair.c code then run this

$ gcc -o sixpair sixpair.c -lusb

This will compile the source code and you should have a sixpair app in the same director as sixpair.c

Next you need to connect the PS3 controller up to your computer with a mini USB cable. Then run the sixpair app like below but where the xx:xx:xx:xx:xx:xx is you will need to put in your bluetooth mac address you got from the sixaxis compatibility checker app you ran before.

$ sudo ./sixpair xx:xx:xx:xx:xx:xx

This will change the bluetooth mac address on the controller to be the same as your android devices. If you want to use the controller again on the PS3, you will need to turn on the PS3 then connect it up with the mini USB cable and hit the ps button on the front. This will change the MAC address back to what is was before so if you want to use it on android again you will need to re run the command

Now all you need to do is download the full app. Please support the developer and buy his/her app since it is a real great app
real_one
On opening the app you will have to enable it like you do a custom keyboard
Screenshot_2014-08-25-18-05-45
keyboard
All that’s left now is to enable it as a game pad so any game that supports game pads will pick it up
gamepad
You can configure the button mapping and a bunch of other setting for you to play with

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s