I am building that because i've played with mine ps4 controller and i wanted to build something from arduino.
That is the magic program :D
x-zip-compressed - 2.10 MB - 06/25/2017 at 09:53
First, you download an "UnoJoy", than you put code in Arduino (in the folder of UnoJoy, called UnoJoyArduinoSample).
Than put arduino uno r3 in "DF mode" (you make this by touching 2 pins on the 6 pin connector, closer to USB B connector, (where you put an USB cable)), than start "TurnIntoAJoystick".
Than, you connect your buttons to pins 2-13 and analog pins (in the folder, there are written coresponding buttons to pins, or try it with metod - try and error, like me :D