I recommend you to use Steam's gamepad drivers. Don't use other external programs like DS4windows and such, it's quite buggy and doesn't work on all games, and also it has a lot of problems and it may stop working suddenly.

Open Steam, go big picture, config and then gamepad config. There you have full support for DS4 controllers. You can even remap some buttons, change the color of the light etc...

It just works and you don't need to run specific buggy programs.