How can I map buttons on my PS3 controller to keystrokes on my Mac?
Yeah there's an application called "ControllerMate" that you can get here http://www.orderedbytes.com/controllermate/ . You pair the controller to the mac with USB (I think Bluetooth will work too but you might have to look up special instructions), then use this app to bind the controller functions to keys and mouse movements. It works really well. I used to use it to play things like Portal because they don't natively support the PS3 controller.