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!
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:
committed 01:20PM - 24 Jul 23 UTC
committed 01:20PM - 24 Jul 23 UTC
Running under Gnome, calling ComponentPeer::forceSetBounds immediately
after cre… ating a new peer causes the peer to emit a visibility-changed
event because the window manager sometimes reports that the new window
is in IconicState.
_NET_WM_STATE_HIDDEN seems to more accurately reflect whether the window
is really minimised or off-screen.
Also, touchpad smooth scrolling has been in X11 XI2 since 2011:
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.
2 Likes
KottVV
October 18, 2023, 4:53am
5
+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