Le 19/12/2013 07:53, puredata@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@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