diff options
| -rw-r--r-- | proto-mouse/ftnoir_protocol_mouse.cpp | 7 | 
1 files changed, 6 insertions, 1 deletions
| 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 <cmath>  #include <algorithm> +  #include <windows.h> +#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)); | 
