summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2026-02-20 02:44:52 -0500
committerGitHub <noreply@github.com>2026-02-20 02:44:52 -0500
commit981b7df4203d2907278506f4115a3604d7422fbb (patch)
tree456f8d7539bfdb0fa7e5f185ef04d52fcc97a176 /Source/Core/DolphinQt/Config/CommonControllersWidget.cpp
parent3d16e0c5bec03a3015be4f78cded51e511dad6d9 (diff)
parent61c36b0cc85c4e4ff85e9cb099c7fe16eb6db6ca (diff)
Merge pull request #14335 from TixoRebel/joycon-config
Core: Add SDL Hints settings
Diffstat (limited to 'Source/Core/DolphinQt/Config/CommonControllersWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/CommonControllersWidget.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp b/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp
index 7a5e1256af..6d905eeb8c 100644
--- a/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp
+++ b/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp
@@ -11,6 +11,7 @@
#include "Core/Config/MainSettings.h"
#include "DolphinQt/Config/ControllerInterface/ControllerInterfaceWindow.h"
+#include "DolphinQt/Config/SDLHints/SDLHintsWindow.h"
#include "DolphinQt/QtUtils/NonDefaultQPushButton.h"
#include "DolphinQt/QtUtils/SignalBlocking.h"
#include "DolphinQt/Settings.h"
@@ -33,9 +34,11 @@ void CommonControllersWidget::CreateLayout()
m_common_bg_input = new QCheckBox(tr("Background Input"));
m_common_configure_controller_interface =
new NonDefaultQPushButton(tr("Alternate Input Sources"));
+ m_common_configure_sdl_hints = new NonDefaultQPushButton(tr("SDL Controller Settings"));
m_common_layout->addWidget(m_common_bg_input);
m_common_layout->addWidget(m_common_configure_controller_interface);
+ m_common_layout->addWidget(m_common_configure_sdl_hints);
m_common_box->setLayout(m_common_layout);
@@ -51,6 +54,8 @@ void CommonControllersWidget::ConnectWidgets()
connect(m_common_bg_input, &QCheckBox::toggled, this, &CommonControllersWidget::SaveSettings);
connect(m_common_configure_controller_interface, &QPushButton::clicked, this,
&CommonControllersWidget::OnControllerInterfaceConfigure);
+ connect(m_common_configure_sdl_hints, &QPushButton::clicked, this,
+ &CommonControllersWidget::OnSDLHintConfigure);
}
void CommonControllersWidget::OnControllerInterfaceConfigure()
@@ -61,6 +66,14 @@ void CommonControllersWidget::OnControllerInterfaceConfigure()
window->show();
}
+void CommonControllersWidget::OnSDLHintConfigure()
+{
+ SDLHintsWindow* window = new SDLHintsWindow(this);
+ window->setAttribute(Qt::WA_DeleteOnClose, true);
+ window->setWindowModality(Qt::WindowModality::WindowModal);
+ window->show();
+}
+
void CommonControllersWidget::LoadSettings()
{
SignalBlocking(m_common_bg_input)->setChecked(Config::Get(Config::MAIN_INPUT_BACKGROUND_INPUT));