IDG Answers is a community of experts who are passionate about technology. Ask a question or answer one below.
Here is a well-detailed tutorial how to use PS3 controller. I hope it will help you. http://htc-one.wonderhowto.com/how-to/play-any-android-game-with-ps3-con...
This answer starts out the same as many with regards to using Android devices in interesting ways - you need to be rooted. Got it rooted? Good, step one complete. Not get out your wallet (or at least the change from behind your couch cushions), because you are going to need to buy an app called SixAxis Controller by Dancing Pixel Studios. It’s currently $2.53 on Google Play. https://play.google.com/store/apps/details?id=com.dancingpixelstudios.si...
Before you buy, make sure to check compatibility using the SixAxis Compatibility Checker. It does not work with most HTC and some Samsung devices: https://play.google.com/store/apps/details?id=com.dancingpixelstudios.si...
If it works, you will need to follow these instructions:
Download and install the application from the Android Market. It is highly recommended that you first download the 'Sixaxis Compatibility Checker' app to make sure your phone is compatible before purchasing the full application.
Tap the 'start' button and wait for bluetooth to initiate. If you get an 'Error: Missing required protocol' message, your device is not supported.
If not already done, you must manually pair the controller with your phone. This can be done using'SixaxisPairTool', or with 'MotionInJoy' or the linux utility 'sixpair'. Your phones bluetooth address should be shown at the bottom of the main application window and will look something like 1A:3C:13:00:21:C2; you need to enter this number into the 'SixaxisPairTool' as shown. This process only needs to be done the first time a controller is used on a different device, so if you only use the controller on one phone, you will only need to do it once. (NOTE: I think if you just use an OTG cable and connect your PS3 controller to the Android device, you can just use the "Pair" command in the app.)
Once paired, unplug the USB cable and press the power button on the controller. If successful, the lights on the controller will stop blinking and a single light will remain on.
If you are running the compatibility checker, and pressing buttons on the controller results in button presses showing up in the app, congratulations, you can now download the full app.
Tap the 'Change Input Method' button and select 'Sixaxis Controller'. You should now be able to use the controller in any games or applications that support key bindings, such as many emulators.
Subsequent controllers can be added at any time by pressing their power buttons.
You can change the fallback input method and key mappings in the applications settings.