Don't fake cursor position if mhack is disabled, clicking fixed
This commit is contained in:
parent
020168f725
commit
1cba0b66b2
1 changed files with 7 additions and 4 deletions
3
main.c
3
main.c
|
@ -317,12 +317,15 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
case WM_RBUTTONDOWN:
|
||||
case WM_LBUTTONUP:
|
||||
case WM_RBUTTONUP:
|
||||
if(ddraw->mhack)
|
||||
{
|
||||
if(!ddraw->locked)
|
||||
{
|
||||
mouse_lock();
|
||||
return 0;
|
||||
}
|
||||
lParam = MAKELPARAM(ddraw->cursor.x, ddraw->cursor.y);
|
||||
}
|
||||
case 1139: /* this somehow triggers network activity in RA, investigate */
|
||||
return ddraw->WndProc(hWnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue