summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r--src/input/inputmanager.cpp30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index a49f7ab49..1f9869d4d 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -894,10 +894,6 @@ void InputManager::updateKeyActionMap(KeyToActionMap &restrict actionMap,
{
actionMap[ki.value].push_back(
static_cast<InputActionT>(i));
- logger->log("add key: %d, action: %d, size: %ld",
- ki.value,
- CAST_S32(i),
- static_cast<long>(actionMap[ki.value].size()));
}
}
}
@@ -927,32 +923,8 @@ void InputManager::updateKeyActionMap(KeyToActionMap &restrict actionMap,
KeysVector *const keys = &it->second;
if (!keys)
continue;
- const size_t sz = keys->size();
- if (sz > 1)
- {
- logger->log("actions size: key: %d, size: %d",
- it->first,
- CAST_S32(sz));
- int sum = 0;
- FOR_EACHP (KeysVectorIter, itk, keys)
- {
- const size_t val = CAST_SIZE(*itk);
- if (val >= CAST_SIZE(InputAction::TOTAL))
- {
- logger->log("wrong action index: %ld",
- static_cast<long>(val));
- break;
- }
- else
- {
- logger->log("action index: %ld",
- static_cast<long>(val));
- }
- sum += inputActionData[val].priority;
- }
- logger->log("sum: %d", sum);
+ if (keys->size() > 1)
std::sort(keys->begin(), keys->end(), inputActionDataSorter);
- }
}
}