diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-01-05 14:33:13 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-01-05 14:33:13 -0300 |
commit | 7332da31fc42fc393bcef529749d6a41dfcdc703 (patch) | |
tree | ab2cf0f87d3b93c2241c57aea8ef5f862213c3f8 | |
parent | 003f2dab786c76ff0e9041b173ea6c7b3b572403 (diff) |
Forced set mouse global position always, hopefully will fix #15354, otherwise out of luck.
-rw-r--r-- | platform/windows/os_windows.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 22294005f6..4f4b225b14 100644 --- a/platform/windows/os_windows.cpp +++ b/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) { |