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

This commit is contained in:
Xavier Sellier 2018-01-31 23:27:48 -05:00
parent 082a2f95df
commit fe11a2d23d

View File

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