diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-08-06 15:13:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 15:13:00 +0200 |
commit | 9e1054bbb7366bfe280495c69d93df1bd3068674 (patch) | |
tree | e059a2554575c6068cdb0096d5a3848e4dd130f5 | |
parent | 4188b0c139dc71b425528db97afdc1e54c2fb5b4 (diff) | |
parent | b12240a199803c1aa08ba58e5770315f250b4d62 (diff) |
Merge pull request #31107 from yamgent/fix-mouse-wheel-coord
Fix wrong mouse wheel position for MOUSE_MODE_CAPTURED on Windows
-rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 07470cec92..db4575a0cb 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -719,7 +719,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) pressrc = 0; } } - } else if (mouse_mode != MOUSE_MODE_CAPTURED) { + } else { // for reasons unknown to mankind, wheel comes in screen coordinates POINT coords; coords.x = mb->get_position().x; |