plugins/mousepad: fix remote mouse movement by replacing Qt API with win32 API

This commit is contained in:
Piyush Aggarwal 2021-06-02 00:11:16 +05:30
parent 7b56c1d340
commit c00ea12007

View file

@ -235,8 +235,12 @@ bool WindowsRemoteInput::handlePacket(const NetworkPacket& np)
}
} else { //Is a mouse move event
QPoint point = QCursor::pos();
QCursor::setPos(point.x() + (int)dx, point.y() + (int)dy);
POINT point;
if (GetCursorPos(&point)) {
return SetCursorPos(point.x + (int)dx, point.y + (int)dy);
} else {
return false;
}
}
return true;
}