summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-18 20:46:13 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-08-18 21:05:19 +0200
commit2ed87f33cf0ba91ecda081be3fd4231071a9c19e (patch)
treefdce75ccae6392cb1efc71cf5a45df0a74efc8ce /platform/windows
parent3f2d806b02b222b8678783541523d6d3417fee25 (diff)
Workaround missing WM_TOUCH on mingw-w64 < 4.0
Upstream bug report: https://sourceforge.net/p/mingw-w64/bugs/460/
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/os_windows.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 54021b8172..72f6068eb6 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -63,12 +63,11 @@ __attribute__((visibility("default"))) DWORD NvOptimusEnablement = 0x00000001;
#endif
}
-#ifndef WM_MOUSEHWHEEL
-#define WM_MOUSEHWHEEL 0x020e
+// Workaround mingw-w64 < 4.0 bug
+#ifndef WM_TOUCH
+#define WM_TOUCH 576
#endif
-//#define STDOUT_FILE
-
extern HINSTANCE godot_hinstance;
void RedirectIOToConsole() {