Vitaliy Margolen : Revert "dinput: Skip old mouse movement events.".

Alexandre Julliard julliard at winehq.org
Fri Feb 15 05:35:57 CST 2008


Module: wine
Branch: master
Commit: eca356829c558a5fc4697856fd5faf6a0f7bef8d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eca356829c558a5fc4697856fd5faf6a0f7bef8d

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Thu Feb 14 00:15:03 2008 -0700

Revert "dinput: Skip old mouse movement events.".

This reverts commit 31876695120f2fe6b4ecf60d73c36472607e5bf2.

---

 dlls/dinput/mouse.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c
index 91f541f..93b70a1 100644
--- a/dlls/dinput/mouse.c
+++ b/dlls/dinput/mouse.c
@@ -64,7 +64,6 @@ struct SysMouseImpl
     BOOL                            need_warp;
     DWORD                           last_warped;
 
-    DWORD                           last_event_time;
     /* This is for mouse reporting. */
     DIMOUSESTATE2                   m_state;
 };
@@ -281,9 +280,6 @@ static void dinput_mouse_hook( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARA
         {
             POINT pt, pt1;
 
-            /* Skip old movement events */
-            if (This->last_event_time - hook->time < 2000) break;
-
             GetCursorPos(&pt);
             This->m_state.lX += pt.x = hook->pt.x - pt.x;
             This->m_state.lY += pt.y = hook->pt.y - pt.y;
@@ -359,8 +355,6 @@ static void dinput_mouse_hook( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARA
                     wdata, hook->time, This->base.dinput->evsequence++);
     }
 
-    This->last_event_time = hook->time;
-
     LeaveCriticalSection(&This->base.crit);
 }
 




More information about the wine-cvs mailing list