summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-23 13:30:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-23 13:30:13 +0300
commitbe66e6d5b5043383cff10f51bd5a9daa4b9fc113 (patch)
tree22578a6c97fedbc8126cc7fd2fbd0686be361c64 /src/input/inputmanager.cpp
parent50bd5d794518e37b6d6f03134aba7fa88c687af2 (diff)
downloadplus-be66e6d5b5043383cff10f51bd5a9daa4b9fc113.tar.gz
plus-be66e6d5b5043383cff10f51bd5a9daa4b9fc113.tar.bz2
plus-be66e6d5b5043383cff10f51bd5a9daa4b9fc113.tar.xz
plus-be66e6d5b5043383cff10f51bd5a9daa4b9fc113.zip
Show long key names in browser box.
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r--src/input/inputmanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 0d1d0bdbe..ecf2aac3e 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -447,6 +447,16 @@ std::string InputManager::getKeyValueByName(const std::string &keyName)
return getKeyValueString((*it).second);
}
+std::string InputManager::getKeyValueByNameLong(const std::string &keyName)
+{
+ const std::map<std::string, int>::const_iterator
+ it = mNameMap.find(keyName);
+
+ if (it == mNameMap.end())
+ return std::string();
+ return getKeyStringLong((*it).second);
+}
+
void InputManager::addActionKey(const int action, const int type,
const int val)
{