On 11/1/25 12:37 'Klaus Rudolph' wrote:
> Now I want to ask if we can handle multi touch events in fltk already.
> I simply need some kind a status report.
It's ongoing work, not yet finished, and may still take a while.
Multi-touch support is now planned for FLTK 1.5. FLTK 1.4 won't get it
because the changes would be too massive under the hood, but we want to
be backwords compatible as always.
> What I need for my application is an event which tells me that a touch
> point is touched/moved or released.
As I read this, that would be a pretty basic (let's say "single point
touch") API rather than a multi-touch API which would handle complete
gestures like rotate, zoom, swipe, ... The latter is what we want to
provide.
> I have no idea if this is already done and forwarded to the event
> handlers simply by generating FL_PUSH, FL_DRAG, FL_MOVE, FL_RELEASE?
Basic (single finger) touch events do already work like this, at least
on some platforms. Probably not FL_DRAG though.
> Or is there already something ongoing with "real" touch events coming
> from XI_TouchBegin/Update/End to something like FL_TOUCH_BEGIN... and
> so on?
>
> For gtk it is simply forwarded as GDK_TOUCH_BEGIN, ... but needs some
> initialization during prog startup.
Again, that would be too basic (IMHO). Please read also Matthias' post
about what we are trying to implement and how we plan to do it. The plan
is to have one or more "touch" events which user programs can handle
similar to mouse events, maybe an FL_ZOOM event that's similar to an
FL_MOUSEWHEEL event and so on (bad example, but I hope you get the gist).