mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:23:01 +00:00
- Move mouse history to mouse.c and it is not effected by the hook bypass.
svn path=/trunk/; revision=54196
This commit is contained in:
parent
4ba68ec5ab
commit
963dfffc01
2 changed files with 11 additions and 10 deletions
|
@ -10,6 +10,9 @@
|
||||||
#include <win32k.h>
|
#include <win32k.h>
|
||||||
DBG_DEFAULT_CHANNEL(UserInput);
|
DBG_DEFAULT_CHANNEL(UserInput);
|
||||||
|
|
||||||
|
MOUSEMOVEPOINT MouseHistoryOfMoves[64];
|
||||||
|
INT gcur_count = 0;
|
||||||
|
|
||||||
#define ClearMouseInput(mi) \
|
#define ClearMouseInput(mi) \
|
||||||
mi.dx = 0; \
|
mi.dx = 0; \
|
||||||
mi.dy = 0; \
|
mi.dy = 0; \
|
||||||
|
@ -160,6 +163,14 @@ IntMouseInput(MOUSEINPUT *mi, BOOL Injected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Do GetMouseMovePointsEx FIFO. */
|
||||||
|
MouseHistoryOfMoves[gcur_count].x = MousePos.x;
|
||||||
|
MouseHistoryOfMoves[gcur_count].y = MousePos.y;
|
||||||
|
MouseHistoryOfMoves[gcur_count].time = mi->time;
|
||||||
|
MouseHistoryOfMoves[gcur_count].dwExtraInfo = mi->dwExtraInfo;
|
||||||
|
if (++gcur_count == ARRAYSIZE(MouseHistoryOfMoves))
|
||||||
|
gcur_count = 0; // 0 - 63 is 64, FIFO forwards.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Insert the messages into the system queue
|
* Insert the messages into the system queue
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,8 +14,6 @@ DBG_DEFAULT_CHANNEL(UserMsgQ);
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
static PAGED_LOOKASIDE_LIST MessageLookasideList;
|
static PAGED_LOOKASIDE_LIST MessageLookasideList;
|
||||||
MOUSEMOVEPOINT MouseHistoryOfMoves[64];
|
|
||||||
INT gcur_count = 0;
|
|
||||||
PUSER_MESSAGE_QUEUE gpqCursor;
|
PUSER_MESSAGE_QUEUE gpqCursor;
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
@ -587,14 +585,6 @@ co_MsqInsertMouseMessage(MSG* Msg, DWORD flags, ULONG_PTR dwExtraInfo, BOOL Hook
|
||||||
GreMovePointer(hdcScreen, Msg->pt.x, Msg->pt.y);
|
GreMovePointer(hdcScreen, Msg->pt.x, Msg->pt.y);
|
||||||
CurInfo->ShowingCursor = 0;
|
CurInfo->ShowingCursor = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do GetMouseMovePointsEx FIFO. */
|
|
||||||
MouseHistoryOfMoves[gcur_count].x = Msg->pt.x;
|
|
||||||
MouseHistoryOfMoves[gcur_count].y = Msg->pt.y;
|
|
||||||
MouseHistoryOfMoves[gcur_count].time = Msg->time;
|
|
||||||
MouseHistoryOfMoves[gcur_count].dwExtraInfo = dwExtraInfo;
|
|
||||||
if (++gcur_count == ARRAYSIZE(MouseHistoryOfMoves))
|
|
||||||
gcur_count = 0; // 0 - 63 is 64, FIFO forwards.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue