plugins/mousepad: fix remote mouse movement by replacing Qt API with win32 API
This commit is contained in:
parent
7b56c1d340
commit
c00ea12007
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue