MotionInJoy offer a greate tools in order to install the required ps3 controller drivers for Windows. The installer comes for both x86 (32-bit operating system) and x64 (64-bit operating system)
Download the installer, unzip it, and execute the .exe file to start the installation. The installation begins with a standard welcome screen,
flow the instalation until the end
Plugin your PS3 controller to your USB , and you should see a small icon on your system tray, showing you that Windows is installing drivers for your controller. At this point, even though your controller will be recognized in the "Game Controllers", Windows will not recognized the buttons movement so we must set it up.
Motioninjoy setup video tutorial