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
commit 9e1054bbb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;