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-requ...@lists.iem.at wrote:
> 
> Message: 4
> Date: Tue, 6 Sep 2022 10:07:09 -0700
> From: Daniel Iglesia <daniel.igle...@gmail.com 
> <mailto:daniel.igle...@gmail.com>>
> To: Alexandre Torres Porres <por...@gmail.com <mailto:por...@gmail.com>>
> Cc: "Peter P." <peterpar...@fastmail.com <mailto:peterpar...@fastmail.com>>, 
> Pd-List
>       <pd-list@lists.iem.at <mailto:pd-list@lists.iem.at>>
> Subject: Re: [PD] Reading/writing a HID device current best practice?
> Message-ID:
>       <canz10w0dhw1udp0hacr7s-ffazabr+5wl5wo1lbqolswvdy...@mail.gmail.com 
> <mailto:canz10w0dhw1udp0hacr7s-ffazabr+5wl5wo1lbqolswvdy...@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/>



_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to