JUCE Linux Multitouch

Hello,

I have started work on getting JUCE to support multitouch in Linux-X11.
Here is the branch: https://github.com/alcomposer/JUCE/commits/touch-squash

Still in a WIP state, but so far I am able to build the Multitouch-demo and it works as expected:

Still some cleanup to do, and I want to support hot-plugging.

I have based this implementation on Godot & Google Chromium. Specifically I am using xInput2 to read touches exclusively, while xInput1 is left untouched for everything else.

Godot uses this same approach on Linux.

If there is anyone that would like to comment, or contribute please do. Given the new RPi5 release, Multitouch for JUCE would be super amazing!

Cheers,
Alex

8 Likes

Great stuff, thank you for sharing!

Excellent!

This work was done on JUCE 7.0.5

Latest 7.0.7 has restructuring, and looks like there is more work done on X11.

If there are any developers reading this forum, are there any plans to support touch? Given the latest work by @reuk is adding / fixing X11 issues:

Also, touchpad smooth scrolling has been in X11 XI2 since 2011:
image

Which by adding XI2 (quite sure this is supported in all current Linux distros) both Multitouch & smooth scrolling can be added.

NOTE: I have signed the JUCE developer agreement, so looking over my code should be fine. :slight_smile:

2 Likes

+1 vote from me

And maybe it deserves a real poll here?

2 Likes

This is excellent news, I’ll be testing this as soon as you deem it suitable.

2 Likes