Find the game’s folder on your computer - this is usually in the Applications folder. If you own the Steam version of the game, you can navigate directly to the game’s folder by right clicking on the game’s title in the Steam Library, then selecting Properties → Local Files → Browse Local Files.

Right click on the game’s application icon, then choose Show Package Contents from the dropdown menu.

In the window that opens, open Contents → Resources → Input Devices.

Drag the downloaded .plist file into the folder. You may be asked to authenticate this action using your username and password; please do so.

Close the Finder window and restart the game with the controller connected.

If you experience issues when using this controller you can see which controllers are fully supported for the game by checking its specific support page: