mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Fix cursor release, didn't read MSDN carefully enough
This commit is contained in:
parent
167342411f
commit
f092dd601a
2
main.c
2
main.c
@ -306,7 +306,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
if(wParam == VK_CONTROL || wParam == VK_TAB)
|
if(wParam == VK_CONTROL || wParam == VK_TAB)
|
||||||
{
|
{
|
||||||
if(GetAsyncKeyState(VK_CONTROL) && GetAsyncKeyState(VK_TAB))
|
if(GetAsyncKeyState(VK_CONTROL) & 0x8000 && GetAsyncKeyState(VK_TAB) & 0x8000)
|
||||||
{
|
{
|
||||||
mouse_unlock();
|
mouse_unlock();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user