From a1f15050a1fec765cb223ae2d10202fad9c4d113 Mon Sep 17 00:00:00 2001 From: spycrab Date: Tue, 29 May 2018 19:34:35 +0200 Subject: [PATCH] Qt/Mapping: Include "Always connected" option --- Source/Core/DolphinQt2/Config/Mapping/GCPadEmu.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Core/DolphinQt2/Config/Mapping/GCPadEmu.cpp b/Source/Core/DolphinQt2/Config/Mapping/GCPadEmu.cpp index 3038033201..61733f7d34 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/GCPadEmu.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/GCPadEmu.cpp @@ -12,6 +12,7 @@ #include "Core/HW/GCPad.h" #include "Core/HW/GCPadEmu.h" +#include "InputCommon/ControllerEmu/Setting/BooleanSetting.h" #include "InputCommon/InputConfig.h" GCPadEmu::GCPadEmu(MappingWindow* window) : MappingWidget(window) @@ -39,6 +40,14 @@ void GCPadEmu::CreateMainLayout() CreateGroupBox(tr("Triggers"), Pad::GetGroup(GetPort(), PadGroup::Triggers))); hbox_layout->addWidget(CreateGroupBox(tr("Rumble"), Pad::GetGroup(GetPort(), PadGroup::Rumble))); + // TODO: Get rid of this garbage once wx is removed + // Remove "Iterative Input" + auto* options_group = Pad::GetGroup(GetPort(), PadGroup::Options); + auto& bools = options_group->boolean_settings; + bools.erase(bools.end() - 1); + + hbox_layout->addWidget(CreateGroupBox(tr("Options"), options_group)); + setLayout(m_main_layout); }