Qt: add Settings::DevicesChanged signal

This commit is contained in:
Michael M 2018-07-05 14:17:07 -07:00
parent 3d1a7737d8
commit b689a195ff
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "DolphinQt/GameList/GameListModel.h" #include "DolphinQt/GameList/GameListModel.h"
#include "DolphinQt/QtUtils/QueueOnObject.h" #include "DolphinQt/QtUtils/QueueOnObject.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/InputConfig.h" #include "InputCommon/InputConfig.h"
Settings::Settings() Settings::Settings()
@ -34,6 +35,9 @@ Settings::Settings()
Config::AddConfigChangedCallback( Config::AddConfigChangedCallback(
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); }); [this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });
g_controller_interface.RegisterDevicesChangedCallback(
[this] { QueueOnObject(this, [this] { emit DevicesChanged(); }); });
SetCurrentUserStyle(GetCurrentUserStyle()); SetCurrentUserStyle(GetCurrentUserStyle());
} }

View File

@ -159,6 +159,7 @@ signals:
void DebugFontChanged(QFont font); void DebugFontChanged(QFont font);
void AutoUpdateTrackChanged(const QString& mode); void AutoUpdateTrackChanged(const QString& mode);
void AnalyticsToggled(bool enabled); void AnalyticsToggled(bool enabled);
void DevicesChanged();
private: private:
bool m_batch = false; bool m_batch = false;