You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Fix zero relative motion event when clicking in MOUSE_MODE_CAPTURED
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user