This commit is contained in:
Henrik Rydgård committed 2023-04-01 19:02:20 +02:00
1 parent 5a82e58564
commit d523005c2b
2 files changed
+2 -4

No files matched your search

-4
View File
@@ -298,11 +298,7 @@ bool ControlMapper::UpdatePSPState(const InputMapping &changedMapping) {
// Note: This is an old problem, it didn't appear with the refactoring.
if (!changedMapping.IsAxis()) {
for (auto &multiMapping : inputMappings) {
bool anyAxis = false;
for (auto &mapping : multiMapping.mappings) {
if (mapping.IsAxis()) {
anyAxis = true;
}
curInput_[mapping] = ReduceMagnitude(curInput_[mapping]);
}
}
+2
View File
@@ -149,6 +149,8 @@ namespace KeyMap {
FixedTinyVec<InputMapping, 3> mappings;
};
// Once the multimappings are inserted here, they must not be empty.
// If one would be, delete the whole entry from the map instead.
typedef std::map<int, std::vector<MultiInputMapping>> KeyMapping;
extern KeyMapping g_controllerMap;