In one sentence, describe what the following article is about:

If you have a PS3 for which you would normally use your controller, turn it off and unplug it to prevent accidentally turning it on while you pair the controller with your Mac. Using a bent paperclip, press the recessed Reset button that's on the bottom of your controller. This will prevent the controller from running into issues left over from previous pairings. This step is optional, but highly recommended. Click the Apple logo in the top-left corner of the screen. A drop-down menu will appear. It's in the drop-down menu. This will open the System Preferences window. It's the Bluetooth icon {"smallUrl":"https:\/\/www.wikihow.com\/images\/9\/9c\/Macbluetooth1.png","bigUrl":"\/images\/thumb\/9\/9c\/Macbluetooth1.png\/15px-Macbluetooth1.png","smallWidth":460,"smallHeight":920,"bigWidth":"15","bigHeight":"30","licensing":"<div class=\"mw-parser-output\"><p>I edited this screenshot of a Mac icon\n<\/p><p>License: <a rel=\"nofollow\" class=\"external text\" href=\"http:\/\/en.wikipedia.org\/wiki\/Fair_use\">Fair Use<\/a><br>\n<\/p><\/div>"} in the middle of the System Preferences menu. If you don't see this option, click the ⋮⋮⋮⋮ button to return to the main System Preferences menu. This button is on the left side of the page. Doing so enables your Mac's Bluetooth. If this button reads Turn Bluetooth Off instead, Bluetooth is already enabled. Attach the small end of the charger cable that came with your PS3 controller to the controller's charging port, then plug the other end into your Mac's USB port. If your Mac uses USB-C ports (ovals) instead of USB 3.0 ports (rectangles), you'll need to buy a USB 3.0 to USB-C adapter for your Mac before you can do this. You can find them on Amazon and in tech department stores. If the controller hasn't been charged for a while, you may want to let it charge for about 30 minutes before proceeding with setting up the Bluetooth connection. It's in the middle of the controller. Doing so will prompt the lights on the top of the controller to begin flashing. The PS3 controller will appear in the list as "Connected" after a few seconds. If your Mac prompts you for the device's passcode, type 0000 and then click Pair. This usually isn't required on newer Macs. Now that the PS3 controller is connected to your computer via Bluetooth, you can use it in any game that supports gamepads. You may have to manually set the controller buttons for game functions; this varies from game to game.

Summary:
Power down and unplug your PS3. Reset your controller. Open the Apple menu . Click System Preferences…. Click Bluetooth. Click Turn Bluetooth On. Connect the PS3 controller to your Mac. Let the controller charge if necessary. Press and hold the PlayStation button for 2 seconds. Unplug the controller and wait for it to sync. Enter 0000 as the passcode if prompted. Set up your controller in-game. Finished.