PS3 controller is Bluetooth supported, but you have to use the USB cable which you use for charging your PlayStation 3 controller, for connecting it to your PC.
Before connecting up your PS3 Sixaxis controller to your PC you will need to download the driver suitable for your Windows 7 and Windows 8 version.
Drivers for Windows 7 and 8 (32 bit) (mirror)
Drivers for Windows 7 and 8 (64 bit) (mirror)
Note: These drivers are compatible with Windows 7 and Windows 8 or 8.1 only.
After downloading the drivers, connect your PS3 controller to your PC.
Installing PlayStation 3 Controller Drivers on Windows 7 & 8 or 8.1
As you connect the controller, Windows will detect the device and appear to install some drivers. However what happens here isn't enough to allow you to use the controller and further drivers – downloaded previously – are required. Open the ZIP file and run the .EXE file to install the MotioninJoy software (DS3 Tool), agreeing to any notifications Windows displays.
With your PC connected to the web, wait while the USB driver for the PlayStation 3 controller is downloaded and installed and then follow the on-screen instructions. When ready, click Load to complete this stage of the process and your controller should appear ready to use.
However at this point there are still a few steps to complete; there is no rumble or analogue controls at this stage, for instance.
Setting Up Dualshock and Analogue Controls
To proceed you will need to exit the DS3 Tool software and then reload it – this allows the software to detect the controller and forces it to display a different set of options.
With the DS3 Tool you can then activate the analogue thumbsticks and Dualshock by selecting your device under Connected game controller(s) and choosing the Analog Gamepad 2 option.
Adjust the Left Motor and Right Motor sliders for Dualshock and then click on Enable to complete the configuration of your PlayStation 3 Sixaxis controller in Windows 7!