ps3 controller input

You'll need a USB host shield. The CircuitsAtHome shield has a PS3 controller library.

http://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-2-0-for-arduino