I tried it with a PS3 controller once. I had to:
- Find a driver so Windows can recognize the PS3 Controller
- Go to the GameController Settings in your Windows Systemsettings
- Calibrate your controller (it is useful to write down which button is assigned to which number)
- And use KeyCode.Joystick1Button0, KeyCode.Joystick1Button1, ... in Unity to get the Input.