Fix cursor position error

This commit is contained in:
dijunkun
2023-10-07 15:12:09 +08:00
parent c5f90e1aee
commit 89fa82b165

View File

@@ -118,6 +118,8 @@ void RemoteDeskServer::ReceiveDataBuffer(const char *data, size_t size,
ip.mi.mouseData = 0;
ip.mi.time = 0;
// Set cursor pos
SetCursorPos(ip.mi.dx, ip.mi.dy);
// Send the press
SendInput(1, &ip, sizeof(INPUT));