diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-15 14:23:07 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-15 14:25:51 -0700 |
| commit | de1c47a70192a594c2435daa14b58950a613e2ce (patch) | |
| tree | d731bb5729b466398835ab0782cef14365236282 /Source/Core/InputCommon/ControllerInterface/evdev | |
| parent | 9fa4eb9aab4790ab370c92790de4f001eb50871e (diff) | |
Misc. Container Find Changes
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index e9f4f21980..e0ae924b83 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -102,7 +102,7 @@ protected: for (auto remove_prefix : {"BTN_", "KEY_"}) { - if (name.find(remove_prefix) == 0) + if (name.starts_with(remove_prefix)) return std::string(name.substr(std::strlen(remove_prefix))); } |
