mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix zero relative motion event when clicking in MOUSE_MODE_CAPTURED
This commit is contained in:
parent
2613e59f59
commit
33dd2c8de6
@ -458,7 +458,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
*/
|
||||
}
|
||||
|
||||
if (window_has_focus && main_loop)
|
||||
if (window_has_focus && main_loop && mm->get_relative() != Vector2())
|
||||
input->parse_input_event(mm);
|
||||
}
|
||||
delete[] lpb;
|
||||
|
Loading…
Reference in New Issue
Block a user