Many PC and Mac games treat the keyboard as a first-class citizen and have poor support for game controllers. You can remap your controller buttons to keyboard key presses to get around this limitation.
You’ll lose some analog input—for example, the joysticks will just function as arrow keys that are on or off without the usual range of sensitivity—but for some games, that’s not a huge issue.
If you’re just looking to play Steam games with a controller, Steam already has great built-in tools for remapping controllers in its Big Picture Mode and will be a much easier solution than anything else listed here. For use system-wide or in non-Steam games, you’ll need a third party application.
RELATED: How to Remap Xbox, PlayStation, and Other Controller Buttons in Steam
Connect Your Controller
This step is obvious, but with so many kinds of controllers on the market, it can be a challenge to get them working correctly, especially on macOS. We have a comprehensive guide for most mainstream controllers that you can reference if you’re having issues, but most current-gen controllers will be plug and play on Windows and macOS. Last-gen and earlier controllers may need custom drivers and a bit of setup.
RELATED: How to Connect Any Console Game Controller to a Windows PC or Mac
You can make sure the controller is connected by opening up the “Devices” tab in Window’s settings. Head to Settings > Devices > Bluetooth & Other Devices and look under “Other Devices.”
On macOS, you can usually find USB controllers in the “System Information” app, under “USB.” Bluetooth controllers should show up in the Bluetooth menu in the top menubar.
Read the remaining 14 paragraphs
Source : How to Remap any Controller to Keyboard Keys on Windows and MacOS