Merge pull request #31107 from yamgent/fix-mouse-wheel-coord

Fix wrong mouse wheel position for MOUSE_MODE_CAPTURED on Windows
This commit is contained in:
Rémi Verschelde
2019-08-06 15:13:00 +02:00
committed by GitHub
+1 -1
View File
@@ -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;