Author: mkupfer
Date: Fri Nov 21 14:58:07 2008
New Revision: 37525
URL:
http://svn.reactos.org/svn/reactos?rev=37525&view=rev
Log:
- Add key modifiers MK_CONTROL and MK_SHIFT to all mouse events.
- See issue #3557 for more details.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/input.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] Fri Nov 21 14:58:07
2008
@@ -1109,6 +1109,17 @@
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;