mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Use 'contains' method
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user