[PD] Reading/writing a HID device current best practice?

Dan Wilcox danomatika at gmail.com
Tue Sep 6 21:02:42 CEST 2022


This is also my preferred approach, but maybe not for those who want to do *everything* in Pd and/or need to write to devices.

joyosc

https://github.com/danomatika/joyosc <https://github.com/danomatika/joyosc>

> joystick & game controller hid device event to Open Sound Control daemon and associated tools

Cross-platform using SDL2.

> On Sep 6, 2022, at 7:07 PM, pd-list-request at lists.iem.at wrote:
> 
> Message: 4
> Date: Tue, 6 Sep 2022 10:07:09 -0700
> From: Daniel Iglesia <daniel.iglesia at gmail.com <mailto:daniel.iglesia at gmail.com>>
> To: Alexandre Torres Porres <porres at gmail.com <mailto:porres at gmail.com>>
> Cc: "Peter P." <peterparker at fastmail.com <mailto:peterparker at fastmail.com>>, Pd-List
> 	<pd-list at lists.iem.at <mailto:pd-list at lists.iem.at>>
> Subject: Re: [PD] Reading/writing a HID device current best practice?
> Message-ID:
> 	<CANZ10W0dhw1uDp0hacR7S-fFAZABR+5WL5Wo1LbqoLsWvDY4BQ at mail.gmail.com <mailto:CANZ10W0dhw1uDp0hacR7S-fFAZABR+5WL5Wo1LbqoLsWvDY4BQ at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> I know this isn't the desired answer, but my strategy (a few years ago, on
> Raspberry Pi, haven't tried HID since then) was to launch a python script
> to listen for HID messages, then route them via UDP into a local port on
> which Pd would listen and consume the messages. I don't recall if I had to
> do some message unpacking in the python script or if I could just route the
> raw data and unpack everything in Pd.

--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20220906/dc2a50f8/attachment-0001.htm>


More information about the Pd-list mailing list