diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-09-14 14:05:05 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-09-22 10:30:13 +0000 |
commit | b638a7da38eba2e520a0636b9b08602a556b4849 (patch) | |
tree | 181165bb013d010952b116ecd3ceeba781f4d49b /src/platformsupport/input/shared/qtouchoutputmapping_p.h | |
parent | 036639c2b575de238a519cb029c4ba70d4c8980d (diff) |
eglfs: Add missing virtual layout setting for DRM/KMS
Just setting virtualDesktopLayout and virtualIndex are not
always enough. To create more complex shapes (e.g. a T-shaped
cluster) the top-left position has to be specified explicitly.
Enable this via an optional virtualPos property.
This also involves improving evdevtouch's mapping functionality.
Instead of fragile indices, rely on the screen name instead.
Change-Id: I138840779032ad9da674bfef7763adfdfc74ccd4
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/platformsupport/input/shared/qtouchoutputmapping_p.h')
-rw-r--r-- | src/platformsupport/input/shared/qtouchoutputmapping_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platformsupport/input/shared/qtouchoutputmapping_p.h b/src/platformsupport/input/shared/qtouchoutputmapping_p.h index 74999d93ce..94d4dbc3b1 100644 --- a/src/platformsupport/input/shared/qtouchoutputmapping_p.h +++ b/src/platformsupport/input/shared/qtouchoutputmapping_p.h @@ -60,10 +60,10 @@ class QTouchOutputMapping { public: bool load(); - int screenIndexForDeviceNode(const QString &deviceNode); + QString screenNameForDeviceNode(const QString &deviceNode); private: - QHash<QString, int> m_screenIndexTable; + QHash<QString, QString> m_screenTable; }; QT_END_NAMESPACE |