As an offshoot of the discussion regarding global recording patch ideas, I have broken out some code related to HID controllers (keyboards, gamepads, mice, etc).
My idea is to make a simple, convenient way to select and connect to USB HID devices. The package includes a “setup” patch that lets you select an HID device by browsing attached devices on the Organelle OLED screen. The package also contains an HID input abstraction for Pure Data that automatically connects to the selected device on launch.
I’ve used it to successfully connect to a 2.4Ghz->USB “tenkeyless” mechanical keyboard, to a Dell mouse, and to an 8-bit Do Pro 2 controller (cable connection), and received input from those devices in pd.
I’m sharing it here in case anyone wants to use it in their own patches.