Unlike iOS, Android will let you use third-party hardware on your device. The PS3 Dualshock 3 controller can be connected to your Samsung Galaxy S4. This way, you can enjoy HD gaming with the PS3 controller. Not all games will work right out-of-the box, but it has been reported that rooting your Samsung Galaxy S4 might enable it. I can’t go over it here and I can not also assure you that rooting your device will ensure the controller works with all your games
Connect PS3 Controller To Samsung Galaxy S4
1. Obtain a OTG cable
2. Connect your PS3 controller to the OTG cable
3. Plug the OTG cable into your phone and take a cup of Coffee while Android does the rest.
4. Your PS3 controller will only have full working function when in game mode.
Hint: Other Android devices with mircoUSB that supports OTG cables will have no problem achieving success with this same procedure. Android 4.0 and newer versions can perform the process.
Like I said earlier, some games will not be compatible with your PS3 controller, games like Max Payne, GTA 3, Shine Runner, Dead Trigger, etc works perfectly well with external controllers while a vast majority of games by Gameloft fails to interact the PS3 controller.
This is how you connect PS3 controller to Samsung Galaxy S4. I hope this was helpful.