An alternate solution, which I've use for a decade now, is *not* to do this in Pd, but to simply forward gamepad/joystick events over OSC:

https://github.com/danomatika/joyosc
 
Greetings,

My students are working on projects where they want to use game controllers with Pd.

We can currently get the hid object to run in Pd-extended on Mac OS High Sierra, but I would like to encourage my students to use a newer version of Pd.

Is hid available through a current library or is there an equivalent external that can provide the same functionality?

Apologies if this has already been covered elsewhere.  Thanks for your help!

-Greg Dixon
 
--
Dan Wilcox
@danomatika
danomatika.com
robotcowboy.com