Fix mouse position when clicking in MOUSE_MODE_CAPTURED
This commit is contained in:
parent
33dd2c8de6
commit
db346bff8b
@ -697,7 +697,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
last_button_state = mb->get_button_mask();
|
last_button_state = mb->get_button_mask();
|
||||||
mb->set_position(Vector2(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)));
|
mb->set_position(Vector2(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)));
|
||||||
|
|
||||||
if (mouse_mode == MOUSE_MODE_CAPTURED) {
|
if (mouse_mode == MOUSE_MODE_CAPTURED && !use_raw_input) {
|
||||||
|
|
||||||
mb->set_position(Vector2(old_x, old_y));
|
mb->set_position(Vector2(old_x, old_y));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user