mouse problem with 'standard' Windows program

gerard patel g.patel at wanadoo.fr.invalid
Fri Nov 16 07:02:43 CST 2001


On 16 Nov 2001 02:16:59 -0800, vkelim at my-deja.com (Dr. David P.S.
Fong) wrote:

>Thank you for your reply...
>
>
>
>Unfortunately, the problem didn't go away when I tried wine20011108
>(which I compiled myself) or wine20011106 or wine20011113 (pre-made
>RPMs).
>
>
>
>The problem did go away when I tried wine20010305 
<snip>

Right, it is another problem. I downloaded this
very strange application and the following hack
is fixing the problem :

--- input.c.orig        Tue Nov 13 21:30:59 2001
+++ input.c     Fri Nov 16 12:26:10 2001
@@ -598,7 +598,9 @@
  */
 WORD WINAPI GetAsyncKeyState(INT nKey)
 {
-    WORD retval = ((AsyncKeyStateTable[nKey] & 0x80) ? 0x0001 : 0) |
+    WORD retval;
+    MsgWaitForMultipleObjects( 0, NULL, FALSE, 0, QS_ALLINPUT );
+    retval = ((AsyncKeyStateTable[nKey] & 0x80) ? 0x0001 : 0) |
                   ((InputKeyStateTable[nKey] & 0x80) ? 0x8000 : 0);
     AsyncKeyStateTable[nKey] = 0;
     TRACE_(key)("(%x) -> %x\n", nKey, retval); 

Let me know if everything works as normal for
the application, if yes I'll try to send it to the
Wine maintainer.

(btw there is something wrong with your news
software it seems - or the Enter key of your
keyboard is faulty and repeats too much)

Gerard



More information about the wine-users mailing list