Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Apr 1, 2023
1 parent 5a82e58 commit d523005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Core/ControlMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
Expand Down
2 changes: 2 additions & 0 deletions Core/KeyMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d523005

Please sign in to comment.