InputCommon/ControllerEmu: Break out functionality of EmulatedController

to eliminate redundant unused members in Wii Remote extension objects.
This commit is contained in:
Jordan Woyak
2025-01-20 23:19:56 -06:00
parent 225039f742
commit ddb82a5e8c
26 changed files with 312 additions and 245 deletions

View File

@ -10,7 +10,6 @@
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "Common/Common.h"
#include "Common/MathUtil.h"
#include "Common/Matrix.h"
#include "Common/StringUtil.h"
@ -228,10 +227,9 @@ void ReshapableInput::SetCenter(ReshapableInput::ReshapeData center)
m_center = center;
}
void ReshapableInput::LoadConfig(Common::IniFile::Section* section,
const std::string& default_device, const std::string& base_name)
void ReshapableInput::LoadConfig(Common::IniFile::Section* section, const std::string& base_name)
{
ControlGroup::LoadConfig(section, default_device, base_name);
ControlGroup::LoadConfig(section, base_name);
const std::string group(base_name + name + '/');
@ -271,10 +269,9 @@ void ReshapableInput::LoadConfig(Common::IniFile::Section* section,
}
}
void ReshapableInput::SaveConfig(Common::IniFile::Section* section,
const std::string& default_device, const std::string& base_name)
void ReshapableInput::SaveConfig(Common::IniFile::Section* section, const std::string& base_name)
{
ControlGroup::SaveConfig(section, default_device, base_name);
ControlGroup::SaveConfig(section, base_name);
const std::string group(base_name + name + '/');