diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-12 20:11:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-12 20:20:59 +0300 |
commit | aeec9ca9881bbd4fdc332b342b09a795ee3961b4 (patch) | |
tree | 3e32a1dd828464a7e6e8c439f658421772a62f40 /src/inputmanager.h | |
parent | 36027fc87b99b8f048265f6ac470227a1c32d481 (diff) | |
download | plus-aeec9ca9881bbd4fdc332b342b09a795ee3961b4.tar.gz plus-aeec9ca9881bbd4fdc332b342b09a795ee3961b4.tar.bz2 plus-aeec9ca9881bbd4fdc332b342b09a795ee3961b4.tar.xz plus-aeec9ca9881bbd4fdc332b342b09a795ee3961b4.zip |
add ability to show assigned keys in browserbox.
Example: This is chat modifier key: ###ChatMod;.
If chat mod key is left shift, it will show:
"This is chat modifier key: left shift."
Diffstat (limited to 'src/inputmanager.h')
-rw-r--r-- | src/inputmanager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inputmanager.h b/src/inputmanager.h index 71f1f8a72..2f3a9afc1 100644 --- a/src/inputmanager.h +++ b/src/inputmanager.h @@ -120,6 +120,8 @@ class InputManager final std::string getKeyStringLong(const int index) const A_WARN_UNUSED; + std::string getKeyValueByName(const std::string &keyName); + void addActionKey(const int action, const int type, const int val); void setNewKey(const SDL_Event &event, const int type); @@ -176,6 +178,8 @@ class InputManager final int mMask; + std::map<std::string, int> mNameMap; + KeyFunction mKey[Input::KEY_TOTAL]; /**< Pointer to all the key data */ }; |