dinput: Don't limit mouse move events to 10ms intervals.
Vitaliy Margolen
wine-patch at kievinfo.com
Sun May 14 17:38:48 CDT 2006
ChangeLog:
dinput: Don't limit mouse move events to 10ms intervals.
This introduces a problem [Bug 3596] when games recenter cursor themselves.
dlls/dinput/mouse.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
-------------- next part --------------
ec168798a714f8363973e8d453377c5d36c69c07
diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c
index 53b5499..22492b0 100644
--- a/dlls/dinput/mouse.c
+++ b/dlls/dinput/mouse.c
@@ -418,7 +418,6 @@ static LRESULT CALLBACK dinput_mouse_hoo
MSLLHOOKSTRUCT *hook = (MSLLHOOKSTRUCT *)lparam;
SysMouseImpl* This = (SysMouseImpl*) current_lock;
DWORD dwCoop;
- static long last_event = 0;
int wdata;
if (code != HC_ACTION) return CallNextHookEx( 0, code, wparam, lparam );
@@ -426,16 +425,6 @@ static LRESULT CALLBACK dinput_mouse_hoo
EnterCriticalSection(&(This->crit));
dwCoop = This->dwCoopLevel;
- /* Only allow mouse events every 10 ms.
- * This is to allow the cursor to start acceleration before
- * 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();
-
/* Mouse moved -> send event if asked */
if (This->hEvent)
SetEvent(This->hEvent);
More information about the wine-patches
mailing list