TDU2 was released in 2009 for PC, Xbox 360, and PlayStation 3. It was not designed to be compatible with controllers from later generations of consoles.
You can use a PlayStation 3 controller on a PC to play TDU2, but you'll need to connect it via a wired connection, and may need to install some third-party software to make it work.