Commit c00ea120 authored by Piyush Aggarwal's avatar Piyush Aggarwal 🎮
Browse files

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

parent 7b56c1d3
Pipeline #63791 passed with stage
in 4 minutes and 3 seconds
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment