diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-01-10 10:33:55 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2012-01-10 12:36:44 +0100 |
commit | becc850c22c3bc9e4a2a2fc7140cb0dc95bfd8df (patch) | |
tree | 16854b4b43c1725864db162339554556f7f84d58 /src/compositor/wayland_wrapper/wlsurface.h | |
parent | 6c32ea510f7f75764c7039e6f117e9b6e43b4622 (diff) |
Add a function to the compositor api to send full touch events
A simple sendTouchPointEvent(id, x, y, ...) type of function will not
be sufficient in the future due to the amount of data in a touch
event; therefore an additional sendFullTouchEvent is introduced. This
function takes a QTouchEvent and posts a series of down, motion, up,
frame events as needed. In the future it may be changed so that it
maps to a protocol extension instead of the standard events.
As an example qwindow-compositor is updated to use this new function.
Change-Id: I39d3df1c6d4868364440f59789d01fc5b7b80dac
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlsurface.h')
-rw-r--r-- | src/compositor/wayland_wrapper/wlsurface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.h b/src/compositor/wayland_wrapper/wlsurface.h index 88bd15c26..e784c6cf5 100644 --- a/src/compositor/wayland_wrapper/wlsurface.h +++ b/src/compositor/wayland_wrapper/wlsurface.h @@ -59,6 +59,8 @@ #include <QtGui/qopengl.h> #endif +class QTouchEvent; + namespace Wayland { class Compositor; @@ -105,6 +107,8 @@ public: void sendTouchFrameEvent(); void sendTouchCancelEvent(); + void sendFullTouchEvent(QTouchEvent *event); + void sendFrameCallback(); void frameFinished(); |