Cleanup, confine g_controllerMap access to KeyMap.cpp

This commit is contained in:
Henrik Rydgård committed 2023-04-01 20:28:42 +02:00
1 parent d523005c2b
commit c1b5aed9b7
5 files changed
+46 -23

No files matched your search

-2
View File
@@ -227,8 +227,6 @@ bool ControlMapper::UpdatePSPState(const InputMapping &changedMapping) {
// If a mapping could consist of a combo, we could trivially check it here.
for (auto &multiMapping : inputMappings) {
if (multiMapping.empty())
continue;
// Check if the changed mapping was involved in this PSP key.
if (multiMapping.mappings.contains(changedMapping)) {
changedButtonMask |= mask;