mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Fix cursor position error
This commit is contained in:
@@ -118,10 +118,12 @@ void RemoteDeskServer::ReceiveDataBuffer(const char *data, size_t size,
|
|||||||
ip.mi.mouseData = 0;
|
ip.mi.mouseData = 0;
|
||||||
ip.mi.time = 0;
|
ip.mi.time = 0;
|
||||||
|
|
||||||
|
// Set cursor pos
|
||||||
|
SetCursorPos(ip.mi.dx, ip.mi.dy);
|
||||||
// Send the press
|
// Send the press
|
||||||
SendInput(1, &ip, sizeof(INPUT));
|
SendInput(1, &ip, sizeof(INPUT));
|
||||||
|
|
||||||
std::cout << "Receive data from [" << user << "], " << ip.type << " "
|
std::cout << "Receive data from [" << user << "], " << ip.type << " "
|
||||||
<< ip.mi.dwFlags << " " << ip.mi.dx << " " << ip.mi.dy
|
<< ip.mi.dwFlags << " " << ip.mi.dx << " " << ip.mi.dy
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user