mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
server: Fix checking of X button flags when updating the input key state.
This commit is contained in:
parent
99af2f56ba
commit
0b8571e3dc
@ -1147,8 +1147,8 @@ static void update_input_key_state( struct desktop *desktop, unsigned char *keys
|
||||
down = (keystate == desktop->keystate) ? 0xc0 : 0x80;
|
||||
/* fall through */
|
||||
case WM_XBUTTONUP:
|
||||
if (msg->wparam == XBUTTON1) set_input_key_state( keystate, VK_XBUTTON1, down );
|
||||
else if (msg->wparam == XBUTTON2) set_input_key_state( keystate, VK_XBUTTON2, down );
|
||||
if (msg->wparam >> 16 == XBUTTON1) set_input_key_state( keystate, VK_XBUTTON1, down );
|
||||
else if (msg->wparam >> 16 == XBUTTON2) set_input_key_state( keystate, VK_XBUTTON2, down );
|
||||
break;
|
||||
case WM_KEYDOWN:
|
||||
case WM_SYSKEYDOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user