summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/FrameTools.cpp
diff options
context:
space:
mode:
authorGerik Kubiak <gerikkub@gmail.com>2015-03-16 21:31:13 -0700
committerGerik Kubiak <gerikkub@gmail.com>2015-03-16 21:31:13 -0700
commit88fb8edf8e9a253c7163e6aad893e2af4c857978 (patch)
tree599add0031a35bca74a55e3f549a5a66bcbb1d37 /Source/Core/DolphinWX/FrameTools.cpp
parent341e7e9d8ff6c77d7eaba4d47e56044203ee80e2 (diff)
Change behavior so emulation is paused when window focus is lost.
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
-rw-r--r--Source/Core/DolphinWX/FrameTools.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp
index b61f093c18..65689012dd 100644
--- a/Source/Core/DolphinWX/FrameTools.cpp
+++ b/Source/Core/DolphinWX/FrameTools.cpp
@@ -1073,15 +1073,15 @@ void CFrame::StartGame(const std::string& filename)
m_RenderParent->SetFocus();
- wxTheApp->Bind(wxEVT_KEY_DOWN, &CFrame::OnKeyDown, this);
- wxTheApp->Bind(wxEVT_KEY_UP, &CFrame::OnKeyUp, this);
- wxTheApp->Bind(wxEVT_RIGHT_DOWN, &CFrame::OnMouse, this);
- wxTheApp->Bind(wxEVT_RIGHT_UP, &CFrame::OnMouse, this);
- wxTheApp->Bind(wxEVT_MIDDLE_DOWN, &CFrame::OnMouse, this);
- wxTheApp->Bind(wxEVT_MIDDLE_UP, &CFrame::OnMouse, this);
- wxTheApp->Bind(wxEVT_MOTION, &CFrame::OnMouse, this);
- wxTheApp->Bind(wxEVT_ENTER_WINDOW, &CFrame::OnMouse, this);
- wxTheApp->Bind(wxEVT_LEAVE_WINDOW, &CFrame::OnMouse, this);
+ wxTheApp->Bind(wxEVT_KEY_DOWN, &CFrame::OnKeyDown, this);
+ wxTheApp->Bind(wxEVT_KEY_UP, &CFrame::OnKeyUp, this);
+ wxTheApp->Bind(wxEVT_RIGHT_DOWN, &CFrame::OnMouse, this);
+ wxTheApp->Bind(wxEVT_RIGHT_UP, &CFrame::OnMouse, this);
+ wxTheApp->Bind(wxEVT_MIDDLE_DOWN, &CFrame::OnMouse, this);
+ wxTheApp->Bind(wxEVT_MIDDLE_UP, &CFrame::OnMouse, this);
+ wxTheApp->Bind(wxEVT_MOTION, &CFrame::OnMouse, this);
+ wxTheApp->Bind(wxEVT_SET_FOCUS, &CFrame::OnFocusChange, this);
+ wxTheApp->Bind(wxEVT_KILL_FOCUS, &CFrame::OnFocusChange, this);
m_RenderParent->Bind(wxEVT_SIZE, &CFrame::OnRenderParentResize, this);
}