mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -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
|
||||
|
@ -103,9 +103,6 @@ class CFrame : public wxFrame
|
||||
void DoPause();
|
||||
void DoStop();
|
||||
bool bRenderToMain;
|
||||
#ifdef _WIN32
|
||||
bool bRendererHasFocus;
|
||||
#endif
|
||||
bool bNoWiimoteMsg;
|
||||
void UpdateGUI();
|
||||
void ToggleLogWindow(bool, int i = -1);
|
||||
|
@ -677,9 +677,5 @@ void Host_SetWiiMoteConnectionState(int _State)
|
||||
|
||||
bool Host_RendererHasFocus()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return main_frame->bRendererHasFocus;
|
||||
#else
|
||||
return main_frame->RendererHasFocus();
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user