Added the possibility to have mouse movements reported relative to
Wine's mouse driver.
diff --git a/windows/winpos.c b/windows/winpos.c
index 9b6e0b7..74771e5 100644
--- a/windows/winpos.c
+++ b/windows/winpos.c
@@ -23,6 +23,7 @@
#include "debugtools.h"
#include "local.h"
#include "ldt.h"
+#include "input.h"
DEFAULT_DEBUG_CHANNEL(win)
@@ -2830,17 +2831,12 @@
if (!GetCapture() && ((wndPtr->dwStyle & WS_VISIBLE) || (flags & SWP_HIDEWINDOW)))
{
/* Simulate a mouse event to set the cursor */
- DWORD posX, posY, keyState;
-
- if ( EVENT_QueryPointer( &posX, &posY, &keyState ) )
- {
- int iWndsLocks = WIN_SuspendWndsLock();
-
- hardware_event( WM_MOUSEMOVE, keyState, 0,
- posX, posY, GetTickCount(), 0 );
-
- WIN_RestoreWndsLock(iWndsLocks);
- }
+ int iWndsLocks = WIN_SuspendWndsLock();
+
+ hardware_event( WM_MOUSEMOVE, GET_KEYSTATE(), 0,
+ PosX, PosY, GetTickCount(), 0 );
+
+ WIN_RestoreWndsLock(iWndsLocks);
}
wndTemp = WIN_GetDesktop();