Browse Source

Fix zero relative motion event when clicking in MOUSE_MODE_CAPTURED

Mikko Mustonen 7 năm trước cách đây
mục cha
commit
33dd2c8de6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      platform/windows/os_windows.cpp

+ 1 - 1
platform/windows/os_windows.cpp

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