From 242fadc76f624f0f02fa1962cd1c50351715a0b4 Mon Sep 17 00:00:00 2001 From: spycrab Date: Fri, 11 May 2018 01:46:05 +0200 Subject: [PATCH] Qt/MappingButton: Fix occasionally broken indicator --- Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp index a0df4d0f2b..8224a39e2a 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp @@ -12,12 +12,15 @@ #include "DolphinQt2/Config/Mapping/MappingButton.h" #include "Common/Thread.h" +#include "Core/Core.h" + #include "DolphinQt2/Config/Mapping/IOWindow.h" #include "DolphinQt2/Config/Mapping/MappingCommon.h" #include "DolphinQt2/Config/Mapping/MappingWidget.h" #include "DolphinQt2/Config/Mapping/MappingWindow.h" #include "DolphinQt2/QtUtils/BlockUserInputFilter.h" #include "DolphinQt2/Settings.h" + #include "InputCommon/ControlReference/ControlReference.h" #include "InputCommon/ControllerEmu/ControllerEmu.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" @@ -52,6 +55,9 @@ MappingButton::MappingButton(MappingWidget* widget, ControlReference* ref, bool Settings::Instance().SetControllerStateNeeded(true); + if (Core::GetState() == Core::State::Uninitialized || Core::GetState() == Core::State::Paused) + g_controller_interface.UpdateInput(); + auto state = m_reference->State(); QFont f = m_parent->font();