summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-01-13 16:37:43 +0100
committerGitHub <noreply@github.com>2024-01-13 16:37:43 +0100
commit1cca3b24c67d1cc58d6551ffc87bd54c64a27e97 (patch)
tree9d0e1d0cfc793f66fbf0de54917a83650033442e /Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
parent8760aca8ec400ceb231eaf98193f83172c2c8971 (diff)
parent7baedc3ec4f3eab131e4a6c9def28d23433a62f4 (diff)
Merge pull request #12085 from SuperSamus/sdl-gamecontroller
SDL: Add GameController API, cleanup
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp5
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))