summaryrefslogtreecommitdiff
path: root/src/inputmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inputmanager.h')
-rw-r--r--src/inputmanager.h4
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 */
};