|
If you use Directx to get the mouse status, it may be too deep.
So you can think of not using DirectX, but using existing functions to combine implementations.
int x, y, lm, mm, rm; // position X, position Y, left button state, middle button state, right button state
Keep saving these 5 values during the timer
In PreTranslateMessage:
if (pMsg-> message == WM_LBUTTONDOWN)
lm = 1;
if (pMsg-> message == WM_LBUTTONUP)
lm = 0;
And so on, changed to the state of the other two keys of the mouse.
During playback, use key_event to simulate the operation |
|