svn path=/trunk/; revision=20514
DWORD dwCoop;
static long last_event = 0;
int wdata;
DWORD dwCoop;
static long last_event = 0;
int wdata;
if (code != HC_ACTION) return CallNextHookEx( This->hook, code, wparam, lparam );
if (code != HC_ACTION) return CallNextHookEx( This->hook, code, wparam, lparam );
* the warps happen. But if it involves a mouse button event we
* allow it since we don't want to lose the clicks.
*/
* the warps happen. But if it involves a mouse button event we
* allow it since we don't want to lose the clicks.
*/
if (((GetCurrentTime() - last_event) < 10)
&& wparam == WM_MOUSEMOVE)
goto end;
else last_event = GetCurrentTime();
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)
/* Mouse moved -> send event if asked */
if (This->hEvent)