summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-01-01 14:42:44 -0500
committerGitHub <noreply@github.com>2025-01-01 14:42:44 -0500
commitf15a78ed380c696764068905cf823984a2a488e1 (patch)
treed365937dd6e3293d17a25045c5e389aa0f233dc3 /Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
parentb8921b133826a19603997737719aa8d7f4b3e7d3 (diff)
parent527841f1df2f4411a1f64ae439275cedcfc13bfa (diff)
Merge pull request #13094 from mitaclaw/ranges-modernization-5-contains
Ranges Algorithms Modernization - Contains
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Android/Android.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
index b67974509b..b6e03e73a0 100644
--- a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
@@ -18,6 +18,7 @@
#include <jni.h>
#include "Common/Assert.h"
+#include "Common/Contains.h"
#include "Common/Logging/Log.h"
#include "Common/StringUtil.h"
@@ -1132,8 +1133,7 @@ Java_org_dolphinemu_dolphinemu_features_input_model_ControllerInterface_notifySe
for (ciface::Core::Device::Input* input : device->Inputs())
{
- const std::string input_name = input->GetName();
- if (std::find(axis_names.begin(), axis_names.end(), input_name) != axis_names.end())
+ if (Common::Contains(axis_names, input->GetName()))
{
auto casted_input = static_cast<ciface::Android::AndroidSensorAxis*>(input);
casted_input->NotifyIsSuspended(static_cast<bool>(suspended));