Touch Display 2 screen gesture capture?

January 6, 2025, 17:56

4049787

I have the official touch display 2. Ive been looking for documentation on how touch input is handled but have not been able to find any. What I would like to accomplish is write a script that will poll the touch screen input and if true run some other code.

k9t33n

Which pi?

k9t33n

And what in particular do you want to happen with this touch input?

4049787

pi 5.

4049787

what I would like to happen is on user input, lets say a simple 2 finger touch, to execute a devtool app that I wrote. The reason that I am looking for this functionality is that the desktop will be hidden by a client application.

4049787

or in lieu of that, open terminal instead of directly opening my app.

k9t33n

Which language?

k9t33n

Assuming python, https://github.com/pimoroni/python-multitouch this is the only thing that I could find

4049787

python is fine, open to any language really.

4049787

Thanks for the link. Being that its "a work in progress" circa 7 years ago Im not sure how helpful it will be but I'll check it out. certainly more than I was able to find.

oops.se

In github you can see under "insights" and then "Network" if someone have made any forks and progress the original repo, https://github.com/pimoroni/python-multitouch/network