summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2018-01-23 12:25:05 -0800
committerGitHub <noreply@github.com>2018-01-23 12:25:05 -0800
commit2c1cb609cc88bfbea6e9cb36cd87bad9d6a8e452 (patch)
treec975a0311b66cb076ceac6ac44a5421f83dc7175 /Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp
parent440101a6bb8f95d1b6a3dcd42a188e2affe3e9e1 (diff)
parentfffa883cae74dd60de511b65a05c23fb54bd1c11 (diff)
Merge pull request #6287 from spycrab/qt_gamecube
Qt/Settings: Implement "GameCube pane"
Diffstat (limited to 'Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp')
-rw-r--r--Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp
index 18d22b706d..7c0c72d40f 100644
--- a/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp
+++ b/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp
@@ -19,6 +19,7 @@
#include "Common/StringUtil.h"
#include "Core/Core.h"
#include "DolphinQt2/Config/Mapping/GCKeyboardEmu.h"
+#include "DolphinQt2/Config/Mapping/GCMicrophone.h"
#include "DolphinQt2/Config/Mapping/GCPadEmu.h"
#include "DolphinQt2/Config/Mapping/Hotkey3D.h"
#include "DolphinQt2/Config/Mapping/HotkeyGeneral.h"
@@ -254,6 +255,12 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
setWindowTitle(tr("GameCube Controller at Port %1").arg(GetPort() + 1));
AddWidget(tr("GameCube Controller"), widget);
break;
+ case Type::MAPPING_GC_MICROPHONE:
+ widget = new GCMicrophone(this);
+ setWindowTitle(tr("GameCube Microphone Slot %1")
+ .arg(GetPort() == 0 ? QStringLiteral("A") : QStringLiteral("B")));
+ AddWidget(tr("Microphone"), widget);
+ break;
case Type::MAPPING_WIIMOTE_EMU:
case Type::MAPPING_WIIMOTE_HYBRID:
{