How to configure PS3 controller and use it on PC?

I need some help connecting my ps3 controller to my IBM PC ! I have the Joystick to mouse program installed already and my ps3 controller is connect with a USB cable to my pc and I have the program open and now I'm stuck and don't know how to make the ps3 controller work.
