mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Qt/Settings: Implement ControllerStateNeeded
This commit is contained in:
@ -10,6 +10,7 @@
|
|||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
#include "Core/ConfigManager.h"
|
#include "Core/ConfigManager.h"
|
||||||
#include "Core/Host.h"
|
#include "Core/Host.h"
|
||||||
|
#include "DolphinQt2/Settings.h"
|
||||||
#include "VideoCommon/RenderBase.h"
|
#include "VideoCommon/RenderBase.h"
|
||||||
|
|
||||||
Host::Host() = default;
|
Host::Host() = default;
|
||||||
@ -108,7 +109,7 @@ void Host_RequestRenderWindowSize(int w, int h)
|
|||||||
}
|
}
|
||||||
bool Host_UINeedsControllerState()
|
bool Host_UINeedsControllerState()
|
||||||
{
|
{
|
||||||
return false;
|
return Settings::Instance().IsControllerStateNeeded();
|
||||||
}
|
}
|
||||||
void Host_NotifyMapLoaded()
|
void Host_NotifyMapLoaded()
|
||||||
{
|
{
|
||||||
|
@ -269,3 +269,13 @@ bool Settings::IsBreakpointsVisible() const
|
|||||||
{
|
{
|
||||||
return QSettings().value(QStringLiteral("debugger/showbreakpoints")).toBool();
|
return QSettings().value(QStringLiteral("debugger/showbreakpoints")).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Settings::IsControllerStateNeeded() const
|
||||||
|
{
|
||||||
|
return m_controller_state_needed;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Settings::SetControllerStateNeeded(bool needed)
|
||||||
|
{
|
||||||
|
m_controller_state_needed = needed;
|
||||||
|
}
|
||||||
|
@ -46,6 +46,8 @@ public:
|
|||||||
void SetLogVisible(bool visible);
|
void SetLogVisible(bool visible);
|
||||||
bool IsLogConfigVisible() const;
|
bool IsLogConfigVisible() const;
|
||||||
void SetLogConfigVisible(bool visible);
|
void SetLogConfigVisible(bool visible);
|
||||||
|
bool IsControllerStateNeeded() const;
|
||||||
|
void SetControllerStateNeeded(bool needed);
|
||||||
|
|
||||||
// GameList
|
// GameList
|
||||||
QStringList GetPaths() const;
|
QStringList GetPaths() const;
|
||||||
@ -111,6 +113,7 @@ signals:
|
|||||||
void DebugModeToggled(bool enabled);
|
void DebugModeToggled(bool enabled);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
bool m_controller_state_needed = false;
|
||||||
std::unique_ptr<NetPlayClient> m_client;
|
std::unique_ptr<NetPlayClient> m_client;
|
||||||
std::unique_ptr<NetPlayServer> m_server;
|
std::unique_ptr<NetPlayServer> m_server;
|
||||||
Settings();
|
Settings();
|
||||||
|
Reference in New Issue
Block a user