mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #5509 from ligfx/qtshutdowncontrollers
MainWindow: shutdown different input interfaces
This commit is contained in:
commit
93020f6c1b
@ -52,6 +52,7 @@ MainWindow::MainWindow() : QMainWindow(nullptr)
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
m_render_widget->deleteLater();
|
||||
ShutdownControllers();
|
||||
}
|
||||
|
||||
void MainWindow::InitControllers()
|
||||
@ -66,6 +67,15 @@ void MainWindow::InitControllers()
|
||||
HotkeyManagerEmu::Initialize();
|
||||
}
|
||||
|
||||
void MainWindow::ShutdownControllers()
|
||||
{
|
||||
g_controller_interface.Shutdown();
|
||||
Pad::Shutdown();
|
||||
Keyboard::Shutdown();
|
||||
Wiimote::Shutdown();
|
||||
HotkeyManagerEmu::Shutdown();
|
||||
}
|
||||
|
||||
void MainWindow::CreateComponents()
|
||||
{
|
||||
m_menu_bar = new MenuBar(this);
|
||||
|
@ -66,6 +66,7 @@ private:
|
||||
void ConnectPathsDialog();
|
||||
|
||||
void InitControllers();
|
||||
void ShutdownControllers();
|
||||
|
||||
void StartGame(const QString& path);
|
||||
void ShowRenderWidget();
|
||||
|
Loading…
Reference in New Issue
Block a user