diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-15 14:20:16 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-15 14:20:16 -0700 |
| commit | 9fa4eb9aab4790ab370c92790de4f001eb50871e (patch) | |
| tree | 5bffa4209a5cf95ef4e77cb49c0aa77cb458c141 /Source/Core/InputCommon/ControllerInterface | |
| parent | 18ac8bf4055093d5aece0e631d04e4d38ec8f0c6 (diff) | |
Use 'contains' method
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm index 58de0c302e..5f0022c79b 100644 --- a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm +++ b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm @@ -179,7 +179,7 @@ std::string KeycodeToName(const CGKeyCode keycode) {kVK_RightOption, "Right Alt"}, }; - if (named_keys.find(keycode) != named_keys.end()) + if (named_keys.contains(keycode)) return named_keys.at(keycode); else return "Key " + std::to_string(keycode); |
