uses the hid object for the incoming values of the joystick, you can change the route message to adapt your own joystick, ( notice is a pc only joystick but does work)

http://www.pdpatchrepo.info/hurleur/geniusjoymidi.pd