mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 00:40:31 +00:00
[NTUSER] Support MK_SHIFT/MK_CONTROL of mouse messages (#2038)
Upon mouse message generation, The states of Shift key and/or Ctrl key must be used. If Shift key is pressed, it enables MK_SHIFT flag of the mouse message. If Ctrl key is pressed, it enables MK_CONTROL flag of the mouse message. CORE-16279
This commit is contained in:
parent
67c78d88c8
commit
462b1b7444
1 changed files with 10 additions and 0 deletions
|
@ -227,6 +227,16 @@ UserSendMouseInput(MOUSEINPUT *pmi, BOOL bInjected)
|
|||
UserSetCursorPos(ptCursor.x, ptCursor.y, bInjected, pmi->dwExtraInfo, TRUE);
|
||||
}
|
||||
|
||||
if (IS_KEY_DOWN(gafAsyncKeyState, VK_SHIFT))
|
||||
pCurInfo->ButtonsDown |= MK_SHIFT;
|
||||
else
|
||||
pCurInfo->ButtonsDown &= ~MK_SHIFT;
|
||||
|
||||
if (IS_KEY_DOWN(gafAsyncKeyState, VK_CONTROL))
|
||||
pCurInfo->ButtonsDown |= MK_CONTROL;
|
||||
else
|
||||
pCurInfo->ButtonsDown &= ~MK_CONTROL;
|
||||
|
||||
/* Left button */
|
||||
if (dwFlags & MOUSEEVENTF_LEFTDOWN)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue