there is (or used to be at least) a separate app that you needed to use for playstation controllers. I think its called DS4Windows. not sure if it supports ps5 controllers, but worth checking
Edit - just looked it up, it does dualsense controllers too https://ds4-windows.com/