diff options
| author | Martino Fontana <tinozzo123@gmail.com> | 2023-10-28 16:32:01 +0200 |
|---|---|---|
| committer | Martino Fontana <tinozzo123@gmail.com> | 2024-01-10 12:20:07 +0100 |
| commit | 0ab2bc22871128fc97b184311616a1d1d1fd6a64 (patch) | |
| tree | 2dee923d67a19256c0c7eb92b3674e0db331081a /Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | |
| parent | 115ad825813d76e3ac8bd8aaab0d110c3fe378ad (diff) | |
ControllerInterface: Make FullAnalogSurface inherit IsDetectable()
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |
