Change unlock combination to Ctrl+Tab which doesn't conflict with any game bindings

This commit is contained in:
Toni Spets 2010-10-24 21:51:30 +03:00
parent 271622e1f5
commit 7595f6d7e5
2 changed files with 6 additions and 6 deletions

10
main.c
View file

@ -148,11 +148,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
ddraw->key_ctrl = TRUE;
}
if(wParam == VK_MENU)
if(wParam == VK_TAB)
{
ddraw->key_alt = TRUE;
ddraw->key_tab = TRUE;
}
if(ddraw->key_alt && ddraw->key_ctrl)
if(ddraw->key_tab && ddraw->key_ctrl)
{
mouse_unlock();
}
@ -162,9 +162,9 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
ddraw->key_ctrl = FALSE;
}
if(wParam == VK_MENU)
if(wParam == VK_TAB)
{
ddraw->key_alt = FALSE;
ddraw->key_tab = FALSE;
}
break;
case WM_LBUTTONDOWN: