I have a GTK window containing a WebKitWebView that shows a user interface. I receive touch information over USB from a touch panel.
How do I inject mouse down, dragged and up events into the web kit view, without having to move the actual mouse pointer (as there may be multiple touch screens connected to one machine that all need to function independently)?
You have to create an appropriate GDK Event (GdkEventButton for mouse button events) and put it in the event queue using
See the GDK documentation for details.