Cleanup, confine g_controllerMap access to KeyMap.cpp

This commit is contained in:
Henrik Rydgård 2023-04-01 19:56:02 +02:00
parent d523005c2b
commit c1b5aed9b7
5 changed files with 46 additions and 23 deletions

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;