summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/input/evdevmouse/qevdevmousemanager_p.h
diff options
context:
space:
mode:
authorAndrew Gatt <andrew.gatt@springltd.co>2014-03-24 14:15:23 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-24 20:25:45 +0100
commit1d4a1be1af8ba3cd1965da0e32754067d2a6d1f6 (patch)
tree7ea1129a9b90893a4cffa87fa3dce94426429d11 /src/platformsupport/input/evdevmouse/qevdevmousemanager_p.h
parentc79918733a194ebbe5a2fe1617c884659f3e4b9f (diff)
Add: absolute touch screen handling in evdevmouse
Some touch screen drivers present themselves as mice with absolute coordinates. Setting QT_QPA_EVDEV_MOUSE_PARAMETERS=abs will force qevdevmousehandler to use absolute coordinates, mapped to the screen from the hardware maximums. These maximum values are read from the driver using ioctls. This feature can be safely used with mice, as the features checks will fail and qevdevmouse will revert back to using relative coordinates. This way touch screens and mice can work together. Change-Id: Ic27bda02aa2199f008bac26db75c1f896696f9f5 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/platformsupport/input/evdevmouse/qevdevmousemanager_p.h')
-rw-r--r--src/platformsupport/input/evdevmouse/qevdevmousemanager_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platformsupport/input/evdevmouse/qevdevmousemanager_p.h b/src/platformsupport/input/evdevmouse/qevdevmousemanager_p.h
index d52a16ea75..5280b5efbd 100644
--- a/src/platformsupport/input/evdevmouse/qevdevmousemanager_p.h
+++ b/src/platformsupport/input/evdevmouse/qevdevmousemanager_p.h
@@ -62,7 +62,7 @@ public:
QDeviceDiscovery *deviceDiscovery() { return m_deviceDiscovery; }
public slots:
- void handleMouseEvent(int x, int y, Qt::MouseButtons buttons);
+ void handleMouseEvent(int x, int y, bool abs, Qt::MouseButtons buttons);
void handleWheelEvent(int delta, Qt::Orientation orientation);
private slots: