浏览代码

Workaround missing WM_TOUCH on mingw-w64 < 4.0

Upstream bug report: https://sourceforge.net/p/mingw-w64/bugs/460/
Rémi Verschelde 8 年之前
父节点
当前提交
2ed87f33cf
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      platform/windows/os_windows.cpp

+ 3 - 4
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() {