summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMichael M <mchtly@gmail.com>2018-07-05 14:17:07 -0700
committerMichael M <mchtly@gmail.com>2018-07-06 17:15:29 -0700
commitb689a195ff283414968d4b433e389a06742e166c (patch)
treeb0b1f1473b4efe8d9795197b4b4e375fecbf9868 /Source/Core
parent3d1a7737d86f4ecdf0131f5b84198f288800da3b (diff)
Qt: add Settings::DevicesChanged signal
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/Settings.cpp4
-rw-r--r--Source/Core/DolphinQt/Settings.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Settings.cpp b/Source/Core/DolphinQt/Settings.cpp
index fa992bee7d..61062d9894 100644
--- a/Source/Core/DolphinQt/Settings.cpp
+++ b/Source/Core/DolphinQt/Settings.cpp
@@ -22,6 +22,7 @@
#include "DolphinQt/GameList/GameListModel.h"
#include "DolphinQt/QtUtils/QueueOnObject.h"
+#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/InputConfig.h"
Settings::Settings()
@@ -34,6 +35,9 @@ Settings::Settings()
Config::AddConfigChangedCallback(
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });
+ g_controller_interface.RegisterDevicesChangedCallback(
+ [this] { QueueOnObject(this, [this] { emit DevicesChanged(); }); });
+
SetCurrentUserStyle(GetCurrentUserStyle());
}
diff --git a/Source/Core/DolphinQt/Settings.h b/Source/Core/DolphinQt/Settings.h
index ba6facb87c..0c1b61d745 100644
--- a/Source/Core/DolphinQt/Settings.h
+++ b/Source/Core/DolphinQt/Settings.h
@@ -159,6 +159,7 @@ signals:
void DebugFontChanged(QFont font);
void AutoUpdateTrackChanged(const QString& mode);
void AnalyticsToggled(bool enabled);
+ void DevicesChanged();
private:
bool m_batch = false;