diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-15 09:52:50 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-15 09:52:50 (GMT) |
commit | e44d64510e019e5d3b379b704cfb824e0d7ccc9d (patch) | |
tree | 3266a1fb4335ab7e44b3ddc55ccaebc13c2a5c2c /src/gui/kernel/qapplication_p.h | |
parent | 6ab9ca55342dad0ce16402b7d2f8d47d61a0af76 (diff) | |
download | Qt-e44d64510e019e5d3b379b704cfb824e0d7ccc9d.zip Qt-e44d64510e019e5d3b379b704cfb824e0d7ccc9d.tar.gz Qt-e44d64510e019e5d3b379b704cfb824e0d7ccc9d.tar.bz2 |
Add multitouch support for the RX-71 device
We have to by-pass X11 mouse events when using this device since we
are reading directly from the /dev/input/event* device files.
Diffstat (limited to 'src/gui/kernel/qapplication_p.h')
-rw-r--r-- | src/gui/kernel/qapplication_p.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_p.h b/src/gui/kernel/qapplication_p.h index 60796fc..5f788d3 100644 --- a/src/gui/kernel/qapplication_p.h +++ b/src/gui/kernel/qapplication_p.h @@ -81,6 +81,7 @@ class QInputContext; class QObject; class QWidget; class QGestureManager; +class QSocketNotifier; extern bool qt_is_gui_used; #ifndef QT_NO_CLIPBOARD @@ -457,6 +458,24 @@ public: bool translateTouchEvent(const MSG &msg); #endif +#ifdef QT_RX71_MULTITOUCH + bool hasRX71MultiTouch; + + struct RX71TouchPointState { + QSocketNotifier *socketNotifier; + QTouchEvent::TouchPoint touchPoint; + + int minX, maxX, scaleX; + int minY, maxY, scaleY; + int minZ, maxZ; + }; + QList<RX71TouchPointState> allRX71TouchPoints; + + bool readRX71MultiTouchEvents(int deviceNumber); + void fakeMouseEventFromRX71TouchEvent(); + void _q_readRX71MultiTouchEvents(); +#endif + private: #ifdef Q_WS_QWS QMap<const QScreen*, QRect> maxWindowRects; |