InputCommon: Rename AddAnalogInputs to AddFullAnalogSurfaceInputs.

This commit is contained in:
Jordan Woyak
2024-11-02 17:10:45 -05:00
parent 53ede795a2
commit 2f1390e9f9
8 changed files with 26 additions and 17 deletions

View File

@ -164,6 +164,14 @@ bool Device::FullAnalogSurface::IsMatchingName(std::string_view name) const
return old_name == name;
}
void Device::AddFullAnalogSurfaceInputs(Input* low, Input* high)
{
AddInput(low);
AddInput(high);
AddInput(new FullAnalogSurface(low, high));
AddInput(new FullAnalogSurface(high, low));
}
void Device::AddCombinedInput(std::string name, const std::pair<std::string, std::string>& inputs)
{
AddInput(new CombinedInput(std::move(name), {FindInput(inputs.first), FindInput(inputs.second)}));