summaryrefslogtreecommitdiff
path: root/src/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-08 02:53:09 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-08 03:27:51 +0300
commitad0fcc99678c13c6f6ebacead6ba2d573294163d (patch)
treed6550eb1ab13382544d7eb674b596a16c003302e /src/inputmanager.cpp
parent4f73caba4497344c50ea245673493941d277699f (diff)
downloadmanaverse-ad0fcc99678c13c6f6ebacead6ba2d573294163d.tar.gz
manaverse-ad0fcc99678c13c6f6ebacead6ba2d573294163d.tar.bz2
manaverse-ad0fcc99678c13c6f6ebacead6ba2d573294163d.tar.xz
manaverse-ad0fcc99678c13c6f6ebacead6ba2d573294163d.zip
Allow assign 3 keys to any action.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r--src/inputmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp
index 5e30f3894..32c4ac1f1 100644
--- a/src/inputmanager.cpp
+++ b/src/inputmanager.cpp
@@ -22,6 +22,7 @@
#include "game.h"
#include "keyboardconfig.h"
+#include "keydata.h"
#include "localplayer.h"
#include "gui/chatwindow.h"
@@ -150,7 +151,7 @@ int InputManager::getInputConditionMask()
return mask;
}
-bool InputManager::checkKey(KeyFunction *key, int mask)
+bool InputManager::checkKey(const KeyData *key, int mask)
{
// logger->log("mask=%d, condition=%d", mask, key->condition);
if (!key || (key->condition & mask) != key->condition)