If you have a PlayStation 4 controller, you can connect it to your PC with an app called DS4Windows and use it to play PC games. But sometimes, you can run into issues where the controller constantly disconnects.
How to Fix a PS4 Controller Disconnecting Itself on Windows
Nothing ruins a game quite like a misbehaving controller. Fortunately, there are ways to fix a disconnecting PS4 controller on Windows.