mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Hopefully fixed "RendererHasFocus()" on windows. Input should work again.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5359 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -757,8 +757,10 @@ bool CFrame::RendererHasFocus()
|
||||
#ifdef _WIN32
|
||||
// Why doesn't the "else" method below work in windows when called from
|
||||
// Host_RendererHasFocus()?
|
||||
bRendererHasFocus = m_RenderParent && (m_RenderParent == wxWindow::FindFocus());
|
||||
return bRendererHasFocus;
|
||||
if (m_RenderParent)
|
||||
if (m_RenderParent->GetParent()->GetHWND() == GetForegroundWindow())
|
||||
return true;
|
||||
return false;
|
||||
#else
|
||||
return m_RenderParent && (m_RenderParent == wxWindow::FindFocus());
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user