summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_win.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-03 09:28:50 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-03 09:28:50 (GMT)
commitc8226762c4fe9ca4c98114a4bf6d88adc44bc2fb (patch)
treeaefc82762574bbf3a965ce5d8a31bf2379475bab /src/gui/kernel/qapplication_win.cpp
parentfdf48e6dc126414bd34db1af3ede601f025acbb0 (diff)
downloadQt-c8226762c4fe9ca4c98114a4bf6d88adc44bc2fb.zip
Qt-c8226762c4fe9ca4c98114a4bf6d88adc44bc2fb.tar.gz
Qt-c8226762c4fe9ca4c98114a4bf6d88adc44bc2fb.tar.bz2
Update to the latest Windows 7 touch API
The Windows 7 SDK RC only has a single message, WM_TOUCH
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-rw-r--r--src/gui/kernel/qapplication_win.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp
index 72a9294..b2411b0 100644
--- a/src/gui/kernel/qapplication_win.cpp
+++ b/src/gui/kernel/qapplication_win.cpp
@@ -113,11 +113,8 @@ extern void qt_wince_hide_taskbar(HWND hwnd); //defined in qguifunctions_wince.c
# include <winable.h>
#endif
-#ifndef WM_TOUCHMOVE
-
-# define WM_TOUCHMOVE 0x0240
-# define WM_TOUCHDOWN 0x0241
-# define WM_TOUCHUP 0x0242
+#ifndef WM_TOUCH
+# define WM_TOUCH 0x0240
# define TOUCHEVENTF_MOVE 0x0001
# define TOUCHEVENTF_DOWN 0x0002
@@ -126,6 +123,7 @@ extern void qt_wince_hide_taskbar(HWND hwnd); //defined in qguifunctions_wince.c
# define TOUCHEVENTF_PRIMARY 0x0010
# define TOUCHEVENTF_NOCOALESCE 0x0020
# define TOUCHEVENTF_PEN 0x0040
+# define TOUCHEVENTF_PALM 0x0080
# define TOUCHINPUTMASKF_TIMEFROMSYSTEM 0x0001
# define TOUCHINPUTMASKF_EXTRAINFO 0x0002
@@ -1733,9 +1731,7 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam
result = widget->translateWheelEvent(msg);
} else {
switch (message) {
- case WM_TOUCHMOVE:
- case WM_TOUCHDOWN:
- case WM_TOUCHUP:
+ case WM_TOUCH:
result = getQApplicationPrivateInternal()->translateTouchEvent(msg);
break;
case WM_KEYDOWN: // keyboard event