[PD] xinput external

Jack jack at rybn.org
Thu Dec 19 11:21:27 CET 2013


Le 19/12/2013 07:53, puredata at 11h11.com a écrit :
> hi,
>
> i am using a modified version of xinput (adding ";", leading 0 and
> unbuffered) with pdsend (udp). i can now get my tablet
> x,y,pressure,tilt in pd. a demo patch is included (showing a way to
> parse xinput test data).
>
> https://github.com/patricksebastien/xinputpdsend
>
> the only problem is that i am using [shell] to execute the xinput |
> pdsend and when quitting pd it hangs until killall xinput.
>
> not very elegant, but working for me.
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list

Hello,

It should be possible to make a bash script where you would start xinput
and pd in background and get their PID.
Then use a loop to check if pd is still alive (with its PID), if not,
you kill xinput.
++

Jack





More information about the Pd-list mailing list