[webkit-help] Firing Touch Events through custom drivers and Custom Event types
julien.chaffraix at gmail.com
Tue Oct 25 08:29:39 PDT 2011
> I have incorrectly explained the situation in 1). I would like the driver to
> trigger the touch events inside WebKit and not the other way around. Since
> WebCore already has the touch event defined, i just need a way to feed the
> data which'll originate from a touch screen driver.
My bad. That's the usual way the events are send to WebKit indeed.
You actually have several choices for that:
* Your port will have a toolkit that will send the events, if you can
get your driver to send the toolkit's touch event, you have nothing to
do at the WebKit level (provided touch event support on your port).
* The other way would be to modify the WebKit API to directly wrap
your driver's event into what WebCore is expecting: a
PlatformTouchEvent  IIRC.
The first one would be the best as you would reuse most of the
existing code and nicely fall into the event pump of your application.
Depending on your needs, the second one may be an option though.
More information about the webkit-help