Browse Source

Fix zero relative motion event when clicking in MOUSE_MODE_CAPTURED

Mikko Mustonen 7 years ago
parent
commit
33dd2c8de6
1 changed files with 1 additions and 1 deletions
  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;