CVS: winex/dlls/dinput/mouse main.c,1.73,1.74

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/dlls/dinput/mouse main.c,1.73,1.74Update of /var/lib/cvsd/cvsroot/winex/dlls/dinput/mouse
In directory agravaine:/tmp/cvs-serv28703/dlls/dinput/mouse

Modified Files:
	main.c 
Log Message:
- Added MsgWaitForMultipleObjectsEx calls in SysMouseAImpl_GetDeviceState and SysMouseAImpl_GetDeviceData to ensure that input gets processed by the driver.


Index: main.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/dinput/mouse/main.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- main.c	30 Mar 2007 22:07:12 -0000	1.73
+++ main.c	30 Mar 2007 22:07:38 -0000	1.74
@@ -1018,6 +1018,8 @@
       return DIERR_NOTACQUIRED;
   }
 
+  MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
+
   EnterCriticalSection(&(This->crit));
 
   /* zero out the memory passed in */
@@ -1073,6 +1075,8 @@
       return DIERR_NOTBUFFERED;
   }
 
+  MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
+
   EnterCriticalSection(&(This->crit));
 
   len = ((This->queue_head < This->queue_tail) ? This->queue_len : 0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.