mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
make ESC quit the game instead of toggling out of/into full screen mode (fixes issue 2246),
implement proper window handling (d3d/sw) which i believe fixes a hang that occurs when a game is stopped (plz test this :)) + some minor stuff git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5030 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -243,25 +243,16 @@ void OnKeyDown(WPARAM wParam)
|
||||
switch (LOWORD( wParam ))
|
||||
{
|
||||
case VK_ESCAPE:
|
||||
ToggleFullscreen(m_hWnd);
|
||||
return;
|
||||
/*
|
||||
if (!g_Config.RenderToMainframe)
|
||||
{
|
||||
if (g_Config.bFullscreen)
|
||||
{
|
||||
// Pressing Esc switches to Windowed in Fullscreen mode
|
||||
// Pressing Esc switches to Windowed mode from Fullscreen mode
|
||||
ToggleFullscreen(m_hWnd);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Pressing Esc stops the emulation
|
||||
SendMessage( m_hWnd, WM_CLOSE, 0, 0 );
|
||||
return;
|
||||
}
|
||||
// then stops the emulation if already Windowed
|
||||
SendMessage(m_hWnd, WM_CLOSE, 0, 0);
|
||||
}
|
||||
*/
|
||||
break;
|
||||
case '3': // OSD keys
|
||||
case '4':
|
||||
|
Reference in New Issue
Block a user