From c118af73c2cb82107b3acf1e509acb39f912e091 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 12 May 2018 01:31:42 +0200 Subject: [PATCH] Qt: Fix mapping defaults --- Source/Core/DolphinQt2/MainWindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index 3b0e796735..faf208ba71 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -151,6 +151,17 @@ void MainWindow::InitControllers() Wiimote::Initialize(Wiimote::InitializeMode::DO_NOT_WAIT_FOR_WIIMOTES); m_hotkey_scheduler = new HotkeyScheduler(); m_hotkey_scheduler->Start(); + + // Defaults won't work reliabily without loading and saving the config first + + Wiimote::LoadConfig(); + Wiimote::GetConfig()->SaveConfig(); + + Pad::LoadConfig(); + Pad::GetConfig()->SaveConfig(); + + Keyboard::LoadConfig(); + Keyboard::GetConfig()->SaveConfig(); } void MainWindow::ShutdownControllers()