diff options
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r-- | src/inputmanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp index 22af8438c..b539c4bcf 100644 --- a/src/inputmanager.cpp +++ b/src/inputmanager.cpp @@ -164,7 +164,8 @@ void InputManager::store() } else { - keyStr += strprintf(",%s%d", tmp.c_str(), key.value); + keyStr += strprintf(",%s%d", + tmp.c_str(), key.value); } } } @@ -504,7 +505,7 @@ void InputManager::updateKeyActionMap(KeyToActionMap &actionMap, int type) KeyFunction &key = mKey[i]; for (size_t i2 = 0; i2 < KeyFunctionSize; i2 ++) { - if (key.values[i2].type == INPUT_KEYBOARD) + if (key.values[i2].type == type) actionMap[key.values[i2].value].push_back(i); } } |