mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
reimplemented support for double clicks
svn path=/trunk/; revision=7169
This commit is contained in:
parent
d97dfed664
commit
52b2f9b429
1 changed files with 1 additions and 9 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: mouse.c,v 1.50 2003/12/21 20:06:44 weiden Exp $
|
/* $Id: mouse.c,v 1.51 2003/12/21 21:26:29 weiden Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* PURPOSE: Mouse
|
* PURPOSE: Mouse
|
||||||
|
@ -305,7 +305,6 @@ MouseGDICallBack(PMOUSE_INPUT_DATA Data, ULONG InputCount)
|
||||||
PSURFGDI SurfGDI;
|
PSURFGDI SurfGDI;
|
||||||
RECTL MouseRect;
|
RECTL MouseRect;
|
||||||
MSG Msg;
|
MSG Msg;
|
||||||
LARGE_INTEGER LargeTickCount;
|
|
||||||
|
|
||||||
hDC = IntGetScreenDC();
|
hDC = IntGetScreenDC();
|
||||||
|
|
||||||
|
@ -332,8 +331,6 @@ MouseGDICallBack(PMOUSE_INPUT_DATA Data, ULONG InputCount)
|
||||||
SurfGDI = (PSURFGDI)AccessInternalObject((ULONG) dc->Surface);
|
SurfGDI = (PSURFGDI)AccessInternalObject((ULONG) dc->Surface);
|
||||||
DC_UnlockDc( hDC );
|
DC_UnlockDc( hDC );
|
||||||
|
|
||||||
KeQueryTickCount(&LargeTickCount);
|
|
||||||
|
|
||||||
/* Compile the total mouse movement change and dispatch button events. */
|
/* Compile the total mouse movement change and dispatch button events. */
|
||||||
for (i = 0; i < InputCount; i++)
|
for (i = 0; i < InputCount; i++)
|
||||||
{
|
{
|
||||||
|
@ -362,32 +359,27 @@ MouseGDICallBack(PMOUSE_INPUT_DATA Data, ULONG InputCount)
|
||||||
{
|
{
|
||||||
CurInfo->ButtonsDown |= (CurInfo->SwapButtons ? MK_RBUTTON : MK_LBUTTON);
|
CurInfo->ButtonsDown |= (CurInfo->SwapButtons ? MK_RBUTTON : MK_LBUTTON);
|
||||||
Msg.message = (CurInfo->SwapButtons ? WM_RBUTTONDOWN : WM_LBUTTONDOWN);
|
Msg.message = (CurInfo->SwapButtons ? WM_RBUTTONDOWN : WM_LBUTTONDOWN);
|
||||||
CurInfo->LastBtnDown = LargeTickCount.u.LowPart;
|
|
||||||
}
|
}
|
||||||
if ((Data[i].ButtonFlags & MOUSE_MIDDLE_BUTTON_DOWN) > 0)
|
if ((Data[i].ButtonFlags & MOUSE_MIDDLE_BUTTON_DOWN) > 0)
|
||||||
{
|
{
|
||||||
CurInfo->ButtonsDown |= MK_MBUTTON;
|
CurInfo->ButtonsDown |= MK_MBUTTON;
|
||||||
Msg.message = WM_MBUTTONDOWN;
|
Msg.message = WM_MBUTTONDOWN;
|
||||||
CurInfo->LastBtnDown = LargeTickCount.u.LowPart;
|
|
||||||
}
|
}
|
||||||
if ((Data[i].ButtonFlags & MOUSE_RIGHT_BUTTON_DOWN) > 0)
|
if ((Data[i].ButtonFlags & MOUSE_RIGHT_BUTTON_DOWN) > 0)
|
||||||
{
|
{
|
||||||
CurInfo->ButtonsDown |= (CurInfo->SwapButtons ? MK_LBUTTON : MK_RBUTTON);
|
CurInfo->ButtonsDown |= (CurInfo->SwapButtons ? MK_LBUTTON : MK_RBUTTON);
|
||||||
Msg.message = (CurInfo->SwapButtons ? WM_LBUTTONDOWN : WM_RBUTTONDOWN);
|
Msg.message = (CurInfo->SwapButtons ? WM_LBUTTONDOWN : WM_RBUTTONDOWN);
|
||||||
CurInfo->LastBtnDown = LargeTickCount.u.LowPart;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((Data[i].ButtonFlags & MOUSE_BUTTON_4_DOWN) > 0)
|
if ((Data[i].ButtonFlags & MOUSE_BUTTON_4_DOWN) > 0)
|
||||||
{
|
{
|
||||||
CurInfo->ButtonsDown |= MK_XBUTTON1;
|
CurInfo->ButtonsDown |= MK_XBUTTON1;
|
||||||
Msg.message = WM_XBUTTONDOWN;
|
Msg.message = WM_XBUTTONDOWN;
|
||||||
CurInfo->LastBtnDown = LargeTickCount.u.LowPart;
|
|
||||||
}
|
}
|
||||||
if ((Data[i].ButtonFlags & MOUSE_BUTTON_5_DOWN) > 0)
|
if ((Data[i].ButtonFlags & MOUSE_BUTTON_5_DOWN) > 0)
|
||||||
{
|
{
|
||||||
CurInfo->ButtonsDown |= MK_XBUTTON2;
|
CurInfo->ButtonsDown |= MK_XBUTTON2;
|
||||||
Msg.message = WM_XBUTTONDOWN;
|
Msg.message = WM_XBUTTONDOWN;
|
||||||
CurInfo->LastBtnDown = LargeTickCount.u.LowPart;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((Data[i].ButtonFlags & MOUSE_LEFT_BUTTON_UP) > 0)
|
if ((Data[i].ButtonFlags & MOUSE_LEFT_BUTTON_UP) > 0)
|
||||||
|
|
Loading…
Reference in a new issue