I use a program called DS4Windows. It's probably outdated, so if that doesn't work try InputMapper. :)
We've used DS4Windows with this game and it works like a charm!Anyhow, the game supports other controllers, not only xbox ones. If your PC recognises your PS4 controller as a gamepad, it should work on the game, too.