JoyToKey - JoyToKey enables users to control the keyboard using any USB compatible controller (Dualshock 3, Xbox 360, etc.)
Pulover’s Macro Creator - Pulover’s Macro Creator is a Free Automation Tool and Script Generator.
Joystick Mapper - Joystick Mapper, An app for Mac OS X that allows you to use gamepads in any app or game
AutoKey - A Python 3 port of AutoKey, the desktop automation utility for Linux and X11.
Pinnacle Game Profiler - Pinnacle Game Profiler enables the use of virtually any game controller (gamepad, joystick, etc.) with any PC game. It's preconfigured for most game titles and controllers. Just download and play.
Hammerspoon - This is a tool for powerful automation of OS X.