mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
allow mouse unlock via VK_RMENU and VK_RCONTROL
This commit is contained in:
parent
f9d26e2fa4
commit
c2254f0d9a
@ -1098,6 +1098,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (wParam == VK_MENU)
|
||||||
|
{
|
||||||
|
if ((GetAsyncKeyState(VK_RMENU) & 0x8000) && GetAsyncKeyState(VK_RCONTROL) & 0x8000)
|
||||||
|
{
|
||||||
|
mouse_unlock();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_KEYUP:
|
case WM_KEYUP:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user