Hardcoreware posted How to use the PS4 Controller in Windows with XBOX Controller XInput Games
A quote from the article:
Unlike using the PS3 controller in Windows, the PS4 controller is supported by the OS easily with basic DirectInput drivers. Unfortunately, not a lot of modern games use DirectInput for controller support anymore. Instead, they use XInput, the API that is easily ported from XBOX games. Furthermore, the button and control axis are reversed or incorrect using the standard API.How to use the PS4 Controller in Windows with XBOX Controller XInput Games @ Hardcoreware
Luckily there is an easy way to get your PS4 controller to work in Windows games that use XInput.