From 04f63f6f9847a180923e766667cf99d5ad08b129 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Feb 2019 08:15:05 +0100 Subject: proto/mouse: bring back NOCOALESCE --- proto-mouse/ftnoir_protocol_mouse.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proto-mouse/ftnoir_protocol_mouse.cpp b/proto-mouse/ftnoir_protocol_mouse.cpp index 2b3af2f0..d57d8809 100644 --- a/proto-mouse/ftnoir_protocol_mouse.cpp +++ b/proto-mouse/ftnoir_protocol_mouse.cpp @@ -12,8 +12,13 @@ #include #include + #include +#ifndef MOUSEEVENTF_MOVE_NOCOALESCE +# define MOUSEEVENTF_MOVE_NOCOALESCE 0x2000 +#endif + static const double invert[] = { 1., 1., 1., 1., -1., 1. @@ -56,7 +61,7 @@ void mouse::pose(const double* headpose) mi = {}; mi.dx = dx; mi.dy = dy; - mi.dwFlags = MOUSEEVENTF_MOVE; + mi.dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_MOVE_NOCOALESCE; (void)SendInput(1, &input, sizeof(input)); -- cgit v1.2.3