summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2025-11-25 23:12:39 +0100
committerGitHub <noreply@github.com>2025-11-25 23:12:39 +0100
commit807488caf9cf41599c7c814a8bbcbc2587721ab4 (patch)
treeec0192a662ab7f361f85887005cf1d7fb05747f2 /Source/Core/DolphinQt/MainWindow.cpp
parentfa2a9e72f9fd2ca445f0fdfdebac0a5d2cf97749 (diff)
parent07324ca067078d75517b20d90c353628f7e755b1 (diff)
Merge pull request #14066 from Biendeo/master
IOS: Logitech USB Microphone Basic Support
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 464c1e20c1..3d2010adee 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -94,6 +94,7 @@
#include "DolphinQt/Debugger/ThreadWidget.h"
#include "DolphinQt/Debugger/WatchWidget.h"
#include "DolphinQt/DiscordHandler.h"
+#include "DolphinQt/EmulatedUSB/LogitechMicWindow.h"
#include "DolphinQt/EmulatedUSB/WiiSpeakWindow.h"
#include "DolphinQt/FIFO/FIFOPlayerWindow.h"
#include "DolphinQt/GCMemcardManager.h"
@@ -572,6 +573,7 @@ void MainWindow::ConnectMenuBar()
connect(m_menu_bar, &MenuBar::ShowSkylanderPortal, this, &MainWindow::ShowSkylanderPortal);
connect(m_menu_bar, &MenuBar::ShowInfinityBase, this, &MainWindow::ShowInfinityBase);
connect(m_menu_bar, &MenuBar::ShowWiiSpeakWindow, this, &MainWindow::ShowWiiSpeakWindow);
+ connect(m_menu_bar, &MenuBar::ShowLogitechMicWindow, this, &MainWindow::ShowLogitechMicWindow);
connect(m_menu_bar, &MenuBar::ConnectWiiRemote, this, &MainWindow::OnConnectWiiRemote);
#ifdef USE_RETRO_ACHIEVEMENTS
@@ -1425,6 +1427,18 @@ void MainWindow::ShowWiiSpeakWindow()
m_wii_speak_window->activateWindow();
}
+void MainWindow::ShowLogitechMicWindow()
+{
+ if (!m_logitech_mic_window)
+ {
+ m_logitech_mic_window = new LogitechMicWindow();
+ }
+
+ m_logitech_mic_window->show();
+ m_logitech_mic_window->raise();
+ m_logitech_mic_window->activateWindow();
+}
+
void MainWindow::StateLoad()
{
QString dialog_path = (Config::Get(Config::MAIN_CURRENT_STATE_PATH).empty()) ?