|
@@ -2072,7 +2072,6 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|
|
|
|
|
mm->set_position(c);
|
|
|
mm->set_global_position(c);
|
|
|
- Input::get_singleton()->set_mouse_position(c);
|
|
|
mm->set_velocity(Vector2(0, 0));
|
|
|
|
|
|
if (raw->data.mouse.usFlags == MOUSE_MOVE_RELATIVE) {
|
|
@@ -2177,7 +2176,6 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|
|
SetCursorPos(pos.x, pos.y);
|
|
|
}
|
|
|
|
|
|
- Input::get_singleton()->set_mouse_position(mm->get_position());
|
|
|
mm->set_velocity(Input::get_singleton()->get_last_mouse_velocity());
|
|
|
|
|
|
if (old_invalid) {
|
|
@@ -2319,7 +2317,6 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|
|
SetCursorPos(pos.x, pos.y);
|
|
|
}
|
|
|
|
|
|
- Input::get_singleton()->set_mouse_position(mm->get_position());
|
|
|
mm->set_velocity(Input::get_singleton()->get_last_mouse_velocity());
|
|
|
|
|
|
if (old_invalid) {
|
|
@@ -2420,7 +2417,6 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|
|
SetCursorPos(pos.x, pos.y);
|
|
|
}
|
|
|
|
|
|
- Input::get_singleton()->set_mouse_position(mm->get_position());
|
|
|
mm->set_velocity(Input::get_singleton()->get_last_mouse_velocity());
|
|
|
|
|
|
if (old_invalid) {
|