diff options
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r-- | src/input/inputmanager.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index eb6627d2a..a49f7ab49 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -894,6 +894,10 @@ 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())); } } } @@ -926,7 +930,9 @@ void InputManager::updateKeyActionMap(KeyToActionMap &restrict actionMap, const size_t sz = keys->size(); if (sz > 1) { - logger->log("keys size: %d", CAST_S32(sz)); + logger->log("actions size: key: %d, size: %d", + it->first, + CAST_S32(sz)); int sum = 0; FOR_EACHP (KeysVectorIter, itk, keys) { @@ -937,6 +943,11 @@ void InputManager::updateKeyActionMap(KeyToActionMap &restrict actionMap, static_cast<long>(val)); break; } + else + { + logger->log("action index: %ld", + static_cast<long>(val)); + } sum += inputActionData[val].priority; } logger->log("sum: %d", sum); |