Rejoystick allows you to map joystick buttons to keyboard keys. This repo is an import of the project found here: http://rejoystick.sourceforge.net/