diff options
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r-- | src/inputmanager.cpp | 3 |
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) |