allow to toggle windowed mode with F4 in HoMM games
This commit is contained in:
parent
8316f89eb4
commit
c7312c2c07
3 changed files with 17 additions and 0 deletions
|
@ -777,6 +777,12 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||
}
|
||||
case WM_KEYDOWN:
|
||||
{
|
||||
if (g_config.homm_hack && wParam == VK_F4) /* Heroes of Might and Magic 3 and 4 */
|
||||
{
|
||||
util_toggle_fullscreen();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (g_config.hotkeys.unlock_cursor1 &&
|
||||
(wParam == VK_CONTROL || wParam == g_config.hotkeys.unlock_cursor1))
|
||||
{
|
||||
|
@ -808,6 +814,9 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||
}
|
||||
case WM_KEYUP:
|
||||
{
|
||||
if (g_config.homm_hack && wParam == VK_F4) /* Heroes of Might and Magic 3 and 4 */
|
||||
return 0;
|
||||
|
||||
if (g_config.hotkeys.screenshot && wParam == g_config.hotkeys.screenshot)
|
||||
ss_take_screenshot(g_ddraw.primary);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue