From 2f1390e9f9706a3c5c0bc46df17006ddf98d4cec Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sat, 2 Nov 2024 17:10:45 -0500 Subject: InputCommon: Rename AddAnalogInputs to AddFullAnalogSurfaceInputs. --- Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp') diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp index 8cf3e763e8..cfced12e80 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp @@ -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& inputs) { AddInput(new CombinedInput(std::move(name), {FindInput(inputs.first), FindInput(inputs.second)})); -- cgit v1.2.3