FrontendCommon: Move input binding and some other logic from Qt to common

This commit is contained in:
Connor McLaughlin committed 2020-02-28 17:00:09 +10:00
1 parent ccbe6f0c42
commit f35970fcac
18 files changed
+639 -440

No files matched your search

@@ -20,6 +20,11 @@ SDLSettingsInterface::~SDLSettingsInterface()
}
}
void SDLSettingsInterface::Clear()
{
m_ini.Reset();
}
int SDLSettingsInterface::GetIntValue(const char* section, const char* key, int default_value /*= 0*/)
{
return static_cast<int>(m_ini.GetLongValue(section, key, default_value));
@@ -9,6 +9,8 @@ public:
SDLSettingsInterface(const char* filename);
~SDLSettingsInterface();
void Clear() override;
int GetIntValue(const char* section, const char* key, int default_value = 0) override;
float GetFloatValue(const char* section, const char* key, float default_value = 0.0f) override;
bool GetBoolValue(const char* section, const char* key, bool default_value = false) override;