Asynchronous mouse button state broken again

Jukka Heinonen jhei at iki.fi
Wed Oct 17 04:53:54 CDT 2001


Recent change to wine/windows/input.c broke asynchronous
mouse button queries. Table AsyncKeyStateTable was
updated when mouse button was released instead of the correct 
table InputKeyStateTable.

Changelog:
   Releasing a mouse button now clears an entry in table
   InputKeyStateTable instead of in table AsyncKeyStateTable.

Index: wine/windows/input.c
===================================================================
RCS file: /home/wine/wine/windows/input.c,v
retrieving revision 1.65
diff -u -r1.65 input.c
--- wine/windows/input.c        2001/10/02 21:39:48     1.65
+++ wine/windows/input.c        2001/10/17 08:12:20
@@ -194,7 +194,7 @@
     }
     if (mi->dwFlags & (!SwappedButtons? MOUSEEVENTF_LEFTUP : MOUSEEVENTF_RIGHTUP))
     {
-        AsyncKeyStateTable[VK_LBUTTON] &= ~0x80;
+        InputKeyStateTable[VK_LBUTTON] &= ~0x80;
         queue_raw_hardware_message( WM_LBUTTONUP, keystate, 0, PosX, PosY,
                                     mi->time, mi->dwExtraInfo );
     }
@@ -207,7 +207,7 @@
     }
     if (mi->dwFlags & (!SwappedButtons? MOUSEEVENTF_RIGHTUP : MOUSEEVENTF_LEFTUP))
     {
-        AsyncKeyStateTable[VK_RBUTTON] &= ~0x80;
+        InputKeyStateTable[VK_RBUTTON] &= ~0x80;
         queue_raw_hardware_message( WM_RBUTTONUP, keystate, 0, PosX, PosY,
                                     mi->time, mi->dwExtraInfo );
     }
@@ -220,7 +220,7 @@
     }
     if (mi->dwFlags & MOUSEEVENTF_MIDDLEUP)
     {
-        AsyncKeyStateTable[VK_MBUTTON] &= ~0x80;
+        InputKeyStateTable[VK_MBUTTON] &= ~0x80;
         queue_raw_hardware_message( WM_MBUTTONUP, keystate, 0, PosX, PosY,
                                     mi->time, mi->dwExtraInfo );
     }


-- 
Jukka Heinonen <http://www.iki.fi/jhei/>




More information about the wine-patches mailing list