Reduce memory allocations during controller processing

This commit is contained in:
Henrik Rydgård committed 2023-12-21 11:15:40 +01:00
1 parent 9a276c6f97
commit 144ed7a3ab
2 files changed
+2 -3

No files matched your search

+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) {