PS3 Controller???

Hi i am trying to use a ps3 controller through a usb cable with the arduino usb shield. i have downloaded the librarie, however i can not work out how to get it to do simple tasks like turn an led on when x is pressed. has anybody got any ideas of where i could start or even some sample code i could use to get used to the way this works. many thanks