diff options
author | Dmitry Kazakov <dimula73@gmail.com> | 2019-04-13 18:08:33 +0300 |
---|---|---|
committer | Dmitry Kazakov <dimula73@gmail.com> | 2019-05-08 12:42:32 +0000 |
commit | a5725561da44215e43b808732ad22fdca4d91454 (patch) | |
tree | f932c7cad05d743a40915a5a272141da7d28bd91 /src/plugins/platforms/windows/qwindowstabletsupport.h | |
parent | 050e7bafad3b723fe5be6e981a32e708dbdc5150 (diff) |
Fetch stylus button remapping from WinTab driver
The user can remap the stylus buttons using tablet driver settings.
This information is available to the application via CSR_SYSBTNMAP
WinTab feature. We should fetch this information every time the
stylus gets into proximity, because the user can change these settings
on the fly.
Change-Id: Idc839905c3485179d782814f78fa862fd4a99127
Reviewed-by: Andre de la Rocha <andre.rocha@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowstabletsupport.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowstabletsupport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowstabletsupport.h b/src/plugins/platforms/windows/qwindowstabletsupport.h index d91701d6a5..8f97982308 100644 --- a/src/plugins/platforms/windows/qwindowstabletsupport.h +++ b/src/plugins/platforms/windows/qwindowstabletsupport.h @@ -45,6 +45,7 @@ #include <QtCore/qvector.h> #include <QtCore/qpoint.h> +#include <QtCore/qhash.h> #include <wintab.h> @@ -100,6 +101,7 @@ struct QWindowsTabletDeviceData qint64 uniqueId = 0; int currentDevice = 0; int currentPointerType = 0; + QHash<quint8, quint8> buttonsMap; }; #ifndef QT_NO_DEBUG_STREAM |