From 2167a45c242137b91127d04da91f8837f033b51f Mon Sep 17 00:00:00 2001 From: spycrab Date: Thu, 4 Jan 2018 18:38:09 +0000 Subject: Qt/Mapping: Implement Microphone widget --- Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp') 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: { -- cgit v1.2.3