Qt: add Settings::DevicesChanged signal
This commit is contained in:
parent
3d1a7737d8
commit
b689a195ff
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue