- Add key modifiers MK_CONTROL and MK_SHIFT to all mouse events.

- See issue #3557 for more details.

svn path=/trunk/; revision=37525
This commit is contained in:
Matthias Kupfer 2008-11-21 20:58:07 +00:00
parent 968119aebb
commit 8cf20f8201

View file

@ -1109,6 +1109,17 @@ IntMouseInput(MOUSEINPUT *mi)
Msg.wParam = CurInfo->ButtonsDown;
Msg.lParam = MAKELPARAM(MousePos.x, MousePos.y);
Msg.pt = MousePos;
if (gQueueKeyStateTable[VK_SHIFT] & 0xc0)
{
Msg.wParam |= MK_SHIFT;
}
if (gQueueKeyStateTable[VK_CONTROL] & 0xc0)
{
Msg.wParam |= MK_CONTROL;
}
if(DoMove)
{
Msg.message = WM_MOUSEMOVE;