summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-10-21 12:02:32 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-10-21 12:02:32 (GMT)
commit4279889ebebb9fdd026fc107f60f825fb2ad565e (patch)
tree194f7b69493f2a5b3a72419c1cb4cdb27a18357c /src/corelib/kernel
parente28e6772e79df9b2adf70e21969af8cac28dc9cf (diff)
downloadQt-4279889ebebb9fdd026fc107f60f825fb2ad565e.zip
Qt-4279889ebebb9fdd026fc107f60f825fb2ad565e.tar.gz
Qt-4279889ebebb9fdd026fc107f60f825fb2ad565e.tar.bz2
Compile on Windows when QS_RAWINPUT is not defined.
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qeventdispatcher_win.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_win.cpp b/src/corelib/kernel/qeventdispatcher_win.cpp
index eca94fc..df4c02d 100644
--- a/src/corelib/kernel/qeventdispatcher_win.cpp
+++ b/src/corelib/kernel/qeventdispatcher_win.cpp
@@ -64,6 +64,10 @@ extern uint qGlobalPostedEventsCount();
# define TIME_KILL_SYNCHRONOUS 0x0100
#endif
+#ifndef QS_RAWINPUT
+# define QS_RAWINPUT 0x0400
+#endif
+
enum {
WM_QT_SOCKETNOTIFIER = WM_USER,
WM_QT_SENDPOSTEDEVENTS = WM_USER + 1
@@ -481,7 +485,6 @@ LRESULT CALLBACK qt_internal_proc(HWND hwnd, UINT message, WPARAM wp, LPARAM lp)
} else if (message == WM_QT_SENDPOSTEDEVENTS) {
int localSerialNumber = d->serialNumber;
- MSG peeked;
if (GetQueueStatus(QS_INPUT | QS_RAWINPUT | QS_TIMER) != 0) {
// delay the next pass of sendPostedEvents() until we get the special
// WM_TIMER, which allows all pending Windows messages to be processed