GTK[mm]4: how to get all "raw" touch & mouse events?


Is it possible to get all touch (begin, update, end) & mouse (button wheel, buttons press/release & move) events?
I tried to use Gtk::Widget::add_controller but I didn’t find any “generic” event controller that I can use to get these events.
I need the “raw” touch events as the existing gestures are not enough for me, I need them for a “tilt” gesture which seems to be missing.



You have GtkEventControllerLegacy for that task. Looks like GTKMM does not include a wrapper yet, maybe you could open an issue on GitLab.

Thanks a lot, that’s why I could not find it …
I’ll try to create the wrapper myself and create a merge request.

There you go

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.