allow mouse unlock via VK_RMENU and VK_RCONTROL
This commit is contained in:
parent
f9d26e2fa4
commit
c2254f0d9a
1 changed files with 8 additions and 0 deletions
|
@ -1098,6 +1098,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
if (wParam == VK_MENU)
|
||||
{
|
||||
if ((GetAsyncKeyState(VK_RMENU) & 0x8000) && GetAsyncKeyState(VK_RCONTROL) & 0x8000)
|
||||
{
|
||||
mouse_unlock();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_KEYUP:
|
||||
|
|
Loading…
Reference in a new issue