Mac/Game Controller

It should work to use software such as:

and then re-map the buttons to a suitable keyboard layout to match: