mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
FrameTools: Set focus on Windows via CFrame::SetFocus
This commit is contained in:
@ -973,11 +973,7 @@ void CFrame::StartGame(const std::string& filename)
|
|||||||
X11Utils::XWindowFromHandle(GetHandle()), true);
|
X11Utils::XWindowFromHandle(GetHandle()), true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
::SetFocus((HWND)m_RenderParent->GetHandle());
|
|
||||||
#else
|
|
||||||
m_RenderParent->SetFocus();
|
m_RenderParent->SetFocus();
|
||||||
#endif
|
|
||||||
|
|
||||||
wxTheApp->Bind(wxEVT_KEY_DOWN, &CFrame::OnKeyDown, this);
|
wxTheApp->Bind(wxEVT_KEY_DOWN, &CFrame::OnKeyDown, this);
|
||||||
wxTheApp->Bind(wxEVT_KEY_UP, &CFrame::OnKeyUp, this);
|
wxTheApp->Bind(wxEVT_KEY_UP, &CFrame::OnKeyUp, this);
|
||||||
|
Reference in New Issue
Block a user