summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 12:05:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 12:05:18 +0300
commit028638516b8a19edfe512309708012003e68b5c5 (patch)
treec23a3cabb879625ca62205c1a1deac805bd5d574 /src/input/inputmanager.cpp
parentc023224562716ff5a4549006af710a9ea48b6a2f (diff)
downloadmanaverse-028638516b8a19edfe512309708012003e68b5c5.tar.gz
manaverse-028638516b8a19edfe512309708012003e68b5c5.tar.bz2
manaverse-028638516b8a19edfe512309708012003e68b5c5.tar.xz
manaverse-028638516b8a19edfe512309708012003e68b5c5.zip
Put chat commands from inputactiondata into map.
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r--src/input/inputmanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 742181eef..2cbd100e2 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -72,7 +72,8 @@ InputManager::InputManager() :
mSetupInput(nullptr),
mNewKeyIndex(InputAction::NO_VALUE),
mMask(1),
- mNameMap()
+ mNameMap(),
+ mChatMap()
{
}
@@ -156,6 +157,8 @@ void InputManager::retrieve()
}
}
}
+ if (!inputActionData[i].chatCommand.empty())
+ mChatMap[i] = i;
}
}