Browse Source

Forced set mouse global position always, hopefully will fix #15354, otherwise out of luck.

Juan Linietsky 7 years ago
parent
commit
7332da31fc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/windows/os_windows.cpp

+ 1 - 0
platform/windows/os_windows.cpp

@@ -416,6 +416,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 			/*mm->get_button_mask()|=(wParam&MK_XBUTTON1)?(1<<5):0;
 			mm->get_button_mask()|=(wParam&MK_XBUTTON2)?(1<<6):0;*/
 			mm->set_position(Vector2(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)));
+			mm->set_global_position(Vector2(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)));
 
 			if (mouse_mode == MOUSE_MODE_CAPTURED) {