diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-03-31 06:33:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-31 06:33:50 +0200 |
| commit | 6e5f8d669227a7cfea247023c5aa2eeabe54f99a (patch) | |
| tree | bde0f2bf040dc5665e9ebcb191669aefd1cea1fc /Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | |
| parent | 86102e7ce9e8a82206d8916fbc970f04c663a195 (diff) | |
| parent | 3a85725ffa94ccef56e35249db3a9c58808ed882 (diff) | |
Merge pull request #12640 from jordan-woyak/sdl-cleanup
SDL: Cleanups
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp index 541dbdb5dd..720ea82735 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp @@ -125,6 +125,11 @@ bool Device::Control::IsMatchingName(std::string_view name) const return GetName() == name; } +bool Device::Control::IsHidden() const +{ + return false; +} + ControlState Device::FullAnalogSurface::GetState() const { return (1 + std::max(0.0, m_high.GetState()) - std::max(0.0, m_low.GetState())) / 2; @@ -141,6 +146,11 @@ bool Device::FullAnalogSurface::IsDetectable() const return m_low.IsDetectable() && m_high.IsDetectable(); } +bool Device::FullAnalogSurface::IsHidden() const +{ + return m_low.IsHidden() && m_high.IsHidden(); +} + bool Device::FullAnalogSurface::IsMatchingName(std::string_view name) const { if (Control::IsMatchingName(name)) |
