mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:51:11 +00:00
Releasing a mouse button now clears an entry in table
InputKeyStateTable instead of AsyncKeyStateTable.
This commit is contained in:
parent
3d4d0862bb
commit
d7d564b227
|
@ -220,7 +220,7 @@ static void queue_mouse_event( const MOUSEINPUT *mi, WORD keystate )
|
|||
}
|
||||
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,
|
||||
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))
|
||||
{
|
||||
AsyncKeyStateTable[VK_RBUTTON] &= ~0x80;
|
||||
InputKeyStateTable[VK_RBUTTON] &= ~0x80;
|
||||
queue_raw_mouse_message( WM_RBUTTONUP, keystate, 0, PosX, PosY,
|
||||
mi->time, mi->dwExtraInfo );
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ static void queue_mouse_event( const MOUSEINPUT *mi, WORD keystate )
|
|||
}
|
||||
if (mi->dwFlags & MOUSEEVENTF_MIDDLEUP)
|
||||
{
|
||||
AsyncKeyStateTable[VK_MBUTTON] &= ~0x80;
|
||||
InputKeyStateTable[VK_MBUTTON] &= ~0x80;
|
||||
queue_raw_mouse_message( WM_MBUTTONUP, keystate, 0, PosX, PosY,
|
||||
mi->time, mi->dwExtraInfo );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue