|
@@ -1364,7 +1364,9 @@ void OS_Windows::set_mouse_mode(MouseMode p_mode) {
|
|
POINT pos = { (int) center.x, (int) center.y };
|
|
POINT pos = { (int) center.x, (int) center.y };
|
|
ClientToScreen(hWnd, &pos);
|
|
ClientToScreen(hWnd, &pos);
|
|
SetCursorPos(pos.x, pos.y);
|
|
SetCursorPos(pos.x, pos.y);
|
|
|
|
+ ShowCursor(false);
|
|
} else {
|
|
} else {
|
|
|
|
+ ShowCursor(true);
|
|
ReleaseCapture();
|
|
ReleaseCapture();
|
|
ClipCursor(NULL);
|
|
ClipCursor(NULL);
|
|
}
|
|
}
|