Fix zero relative motion event when clicking in MOUSE_MODE_CAPTURED

This commit is contained in:
Mikko Mustonen 2018-09-23 12:06:55 +03:00
parent 2613e59f59
commit 33dd2c8de6

View File

@ -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;