On 10/10/21 11:41 PM Ian MacArthur wrote:
On 10 Oct 2021, at 19:07, Albrecht Schlosser wrote:
I don't know yet how Linux/Unix provides multi-touch events to the user program, i.e. FLTK.
This is under investigation but links to documentation (or even code snippets) would be appreciated.
This is not something I know about - I did (briefly) look at how X11 was proposing to handle multi-touch (which was the precursor to gesture events, in effect) but that was a long time ago and I never got anywhere useful.
Also, just to cheer everybody up, my understanding (so may well be wrong!) is that X11 and Wayland take fundamentally different approaches to this so we probably need to handle both at some point.
(My understanding, such as it is, is that X11 strives to maintain backwards compatibility with legacy pointer events, but Wayland has gone all-in on a new touch event interface.)
For X11, there’s an Xinput Extension for it, which I have not read... um, might be: https://www.x.org/releases/X11R7.7/doc/inputproto/XI2proto.txt or something of that ilk.
Thanks for the pointer. This appears to provide a touch API but I'm not
yet done reading all the documetation. Hard stuff.
No idea what Wayland does.
Wayland seems to use libinput but they say this should only be used
inside the Wayland compositor. The client "should not know" about this.
I did not yet investigate how Wayland would provide the client with
gestures. After all I'm not sure if it's feasible to implement the
multi-touch stuff for X11.
I'm now concentrating on a suitable API using the FLTK event system.
I've also checked libinput to see how they're doing it. Once the API is
clear (spec and documentation) the implementation on Windows and macOS
seems straight-forward. After that let's see how X11 comes into play...
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/4509f3b6-c80d-c549-6bb4-19790e273db7%40online.de.
[ Direct Link to Message ]