Steam Deck natively recognizes the PS3 controller. Simply plug it in via USB, wait for Steam OS to recognize it, then unplug USB cable and it will work over Bluetooth without needing
PC Gaming On Your TV? How to Turn Your Gamepad Into a Computer Mouse | PCMag
How to Connect a PS3 Controller to a PC | Digital Trends