Преглед на файлове

Bugfix: This should fix the issue with the mouse global position

Xavier Sellier преди 7 години
родител
ревизия
fe11a2d23d
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      platform/windows/os_windows.cpp

+ 2 - 0
platform/windows/os_windows.cpp

@@ -434,6 +434,8 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 			}
 
 			input->set_mouse_pos(Point2(mm.x, mm.y));
+			mm.global_x = mm.x;
+			mm.global_y = mm.y;
 			mm.speed_x = input->get_mouse_speed().x;
 			mm.speed_y = input->get_mouse_speed().y;