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

Revert "plugins/mousepad: wait for a microsecond to allow interpolation"

This reverts the microsec delay as it introduces a lot of aggregated delay in mouse movement.
parent 3e1e9f44
Pipeline #73958 passed with stage
in 4 minutes and 43 seconds
......@@ -8,8 +8,6 @@
#include <QCursor>
#include <QDebug>
#include <chrono>
#include <thread>
#include <Windows.h>
......@@ -239,9 +237,9 @@ bool WindowsRemoteInput::handlePacket(const NetworkPacket& np)
} else { //Is a mouse move event
POINT point;
if (GetCursorPos(&point)) {
SetCursorPos(point.x + (int)dx, point.y + (int)dy);
// wait for a microsecond here to allow Windows to interpolate
return SetCursorPos(point.x + (int)dx, point.y + (int)dy);
} else {
return false;
return true;
Supports Markdown
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