summaryrefslogtreecommitdiff
path: root/src/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-09 02:15:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-09 04:03:03 +0300
commit333745260338c876989744468a5f9c707e9bcc66 (patch)
tree46a2a99bd2b1a88810f016896a77d4ddd872ec63 /src/inputmanager.cpp
parente60ac0a6bc0fd662cb7a5834896b3953a1bd07e8 (diff)
downloadmanaverse-333745260338c876989744468a5f9c707e9bcc66.tar.gz
manaverse-333745260338c876989744468a5f9c707e9bcc66.tar.bz2
manaverse-333745260338c876989744468a5f9c707e9bcc66.tar.xz
manaverse-333745260338c876989744468a5f9c707e9bcc66.zip
Fix code style.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r--src/inputmanager.cpp5
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);
}
}