Okay, so if you haven't figured this out yet, I just tried and this seems to work.
Go to preferences, MIDI Devices, then hit the Add joystick MIDI... button under your inputs. Select your device, set it to the generic script, test a couple buttons, check "Send as MIDI control/learn," hit OK. Do...