Reduce memory allocations during controller processing

This commit is contained in:
Henrik Rydgård
2023-12-21 11:15:40 +01:00
parent 9a276c6f97
commit 144ed7a3ab
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -534,6 +534,7 @@ bool InputMappingsFromPspButton(int btn, std::vector<MultiInputMapping> *mapping
return false;
}
bool mapped = false;
mappings->clear();
for (auto &iter2 : iter->second) {
bool ignore = ignoreMouse && iter2.HasMouse();
if (mappings && !ignore) {