#118 merge latest sir-tech fixes
(cherry picked from commit 994d4c646fafe58c49631283c72b755d81dbf865)
This commit is contained in:
parent
31119eacb8
commit
ebda8282b2
7 changed files with 94 additions and 4 deletions
|
@ -539,8 +539,20 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||
break;
|
||||
}
|
||||
|
||||
if (wParam && g_ddraw->alt_key_down)
|
||||
PostMessageA(g_ddraw->hwnd, WM_SYSKEYUP, VK_MENU, 0);
|
||||
/* jagged alliance 2 */
|
||||
if (wParam)
|
||||
{
|
||||
INPUT ip;
|
||||
memset(&ip, 0, sizeof(ip));
|
||||
|
||||
ip.type = INPUT_KEYBOARD;
|
||||
ip.ki.wVk = VK_MENU;
|
||||
ip.ki.dwFlags = KEYEVENTF_KEYUP;
|
||||
SendInput(1, &ip, sizeof(ip));
|
||||
}
|
||||
|
||||
//if (wParam && g_ddraw->alt_key_down)
|
||||
// PostMessageA(g_ddraw->hwnd, WM_SYSKEYUP, VK_MENU, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue