mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Cleanup
This commit is contained in:
1 parent
5a82e58564
commit
d523005c2b
2 files changed
+2
-4
No files matched your search
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user