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:
commit
9e1054bbb7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue