summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 00:01:18 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 00:01:18 +0300
commit432896d05e39399b48d80f4e80b058f487f48112 (patch)
tree67a889f0e42cce933177a15afc371e224552fd39 /src/input/inputmanager.h
parent70e54365d660a52884af35487cfdf89d0d53ac9a (diff)
downloadmanaplus-432896d05e39399b48d80f4e80b058f487f48112.tar.gz
manaplus-432896d05e39399b48d80f4e80b058f487f48112.tar.bz2
manaplus-432896d05e39399b48d80f4e80b058f487f48112.tar.xz
manaplus-432896d05e39399b48d80f4e80b058f487f48112.zip
Move keyStr from inputfunction into separate array in inputmanager.
Diffstat (limited to 'src/input/inputmanager.h')
-rw-r--r--src/input/inputmanager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/inputmanager.h b/src/input/inputmanager.h
index 177bb2ae2..26e858185 100644
--- a/src/input/inputmanager.h
+++ b/src/input/inputmanager.h
@@ -160,7 +160,8 @@ class InputManager final
static bool isActionActive0(const InputActionT index) A_WARN_UNUSED;
- void updateKeyString(InputFunction &ki) const restrict2;
+ void updateKeyString(const InputFunction &ki,
+ const size_t actionIdx) restrict2;
/** Reference to setup window */
Setup_Input *mSetupInput A_NONNULLPOINTER;
@@ -173,6 +174,7 @@ class InputManager final
StringIntMap mChatMap;
InputFunction mKey[CAST_SIZE(InputAction::TOTAL)];
+ std::string mKeyStr[CAST_SIZE(InputAction::TOTAL)];
};
extern InputManager inputManager;