From 0ab2bc22871128fc97b184311616a1d1d1fd6a64 Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Sat, 28 Oct 2023 16:32:01 +0200 Subject: ControllerInterface: Make FullAnalogSurface inherit IsDetectable() --- Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 5 +++++ 1 file changed, 5 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 28b91332cc..541dbdb5dd 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp @@ -136,6 +136,11 @@ std::string Device::FullAnalogSurface::GetName() const return "Full " + m_high.GetName(); } +bool Device::FullAnalogSurface::IsDetectable() const +{ + return m_low.IsDetectable() && m_high.IsDetectable(); +} + bool Device::FullAnalogSurface::IsMatchingName(std::string_view name) const { if (Control::IsMatchingName(name)) -- cgit v1.2.3