mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
Toggle full screen when double clicking the render window.
This commit is contained in:
parent
0ffdd2607f
commit
de27f0bea9
@ -1004,6 +1004,8 @@ void CFrame::OnMouse(wxMouseEvent& event)
|
|||||||
event.GetPosition().x, event.GetPosition().y, event.ButtonDown());
|
event.GetPosition().x, event.GetPosition().y, event.ButtonDown());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (event.LeftDClick())
|
||||||
|
DoFullscreen(!RendererIsFullscreen());
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -913,6 +913,7 @@ void CFrame::StartGame(const std::string& filename)
|
|||||||
wxTheApp->Bind(wxEVT_RIGHT_UP, &CFrame::OnMouse, this);
|
wxTheApp->Bind(wxEVT_RIGHT_UP, &CFrame::OnMouse, this);
|
||||||
wxTheApp->Bind(wxEVT_MIDDLE_DOWN, &CFrame::OnMouse, this);
|
wxTheApp->Bind(wxEVT_MIDDLE_DOWN, &CFrame::OnMouse, this);
|
||||||
wxTheApp->Bind(wxEVT_MIDDLE_UP, &CFrame::OnMouse, this);
|
wxTheApp->Bind(wxEVT_MIDDLE_UP, &CFrame::OnMouse, this);
|
||||||
|
m_RenderParent->Bind(wxEVT_LEFT_DCLICK, &CFrame::OnMouse, this);
|
||||||
wxTheApp->Bind(wxEVT_MOTION, &CFrame::OnMouse, this);
|
wxTheApp->Bind(wxEVT_MOTION, &CFrame::OnMouse, this);
|
||||||
m_RenderParent->Bind(wxEVT_SIZE, &CFrame::OnRenderParentResize, this);
|
m_RenderParent->Bind(wxEVT_SIZE, &CFrame::OnRenderParentResize, this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user