--- trunk/reactos/lib/dinput/mouse.c 2006-01-01 14:32:17 UTC (rev 20513)
+++ trunk/reactos/lib/dinput/mouse.c 2006-01-01 14:40:24 UTC (rev 20514)
@@ -423,6 +423,7 @@
DWORD dwCoop;
static long last_event = 0;
int wdata;
+ long lasttime = 0;
if (code != HC_ACTION) return CallNextHookEx( This->hook, code, wparam, lparam );
@@ -434,11 +435,20 @@
* the warps happen. But if it involves a mouse button event we
* allow it since we don't want to lose the clicks.
*/
+#ifndef __REACTOS__
if (((GetCurrentTime() - last_event) < 10)
&& wparam == WM_MOUSEMOVE)
goto end;
else last_event = GetCurrentTime();
+#else
+ lasttime = GetCurrentTime() - last_event;
+ if ((lasttime) < 1)
+ goto end;
+ else if ((lasttime) >= 10)
+ last_event = GetCurrentTime();
+#endif
+
/* Mouse moved -> send event if asked */
if (This->hEvent)
SetEvent(This->hEvent);