Releasing a mouse button now clears an entry in table

InputKeyStateTable instead of AsyncKeyStateTable.
This commit is contained in:
Jukka Heinonen 2001-10-17 19:36:31 +00:00 committed by Alexandre Julliard
parent 3d4d0862bb
commit d7d564b227
1 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ static void queue_mouse_event( const MOUSEINPUT *mi, WORD keystate )
} }
if (mi->dwFlags & (!SwappedButtons? MOUSEEVENTF_LEFTUP : MOUSEEVENTF_RIGHTUP)) if (mi->dwFlags & (!SwappedButtons? MOUSEEVENTF_LEFTUP : MOUSEEVENTF_RIGHTUP))
{ {
AsyncKeyStateTable[VK_LBUTTON] &= ~0x80; InputKeyStateTable[VK_LBUTTON] &= ~0x80;
queue_raw_mouse_message( WM_LBUTTONUP, keystate, 0, PosX, PosY, queue_raw_mouse_message( WM_LBUTTONUP, keystate, 0, PosX, PosY,
mi->time, mi->dwExtraInfo ); mi->time, mi->dwExtraInfo );
} }
@ -233,7 +233,7 @@ static void queue_mouse_event( const MOUSEINPUT *mi, WORD keystate )
} }
if (mi->dwFlags & (!SwappedButtons? MOUSEEVENTF_RIGHTUP : MOUSEEVENTF_LEFTUP)) if (mi->dwFlags & (!SwappedButtons? MOUSEEVENTF_RIGHTUP : MOUSEEVENTF_LEFTUP))
{ {
AsyncKeyStateTable[VK_RBUTTON] &= ~0x80; InputKeyStateTable[VK_RBUTTON] &= ~0x80;
queue_raw_mouse_message( WM_RBUTTONUP, keystate, 0, PosX, PosY, queue_raw_mouse_message( WM_RBUTTONUP, keystate, 0, PosX, PosY,
mi->time, mi->dwExtraInfo ); mi->time, mi->dwExtraInfo );
} }
@ -246,7 +246,7 @@ static void queue_mouse_event( const MOUSEINPUT *mi, WORD keystate )
} }
if (mi->dwFlags & MOUSEEVENTF_MIDDLEUP) if (mi->dwFlags & MOUSEEVENTF_MIDDLEUP)
{ {
AsyncKeyStateTable[VK_MBUTTON] &= ~0x80; InputKeyStateTable[VK_MBUTTON] &= ~0x80;
queue_raw_mouse_message( WM_MBUTTONUP, keystate, 0, PosX, PosY, queue_raw_mouse_message( WM_MBUTTONUP, keystate, 0, PosX, PosY,
mi->time, mi->dwExtraInfo ); mi->time, mi->dwExtraInfo );
} }