summaryrefslogtreecommitdiff
path: root/src/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-08 16:48:15 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-08 16:48:15 +0300
commit25a6eae7f4fb561bbf930be28ee09510b40ebc80 (patch)
treeb6ba46e819293992216c6740c482b491c6f8d0eb /src/inputmanager.cpp
parentad0fcc99678c13c6f6ebacead6ba2d573294163d (diff)
downloadmanaplus-25a6eae7f4fb561bbf930be28ee09510b40ebc80.tar.gz
manaplus-25a6eae7f4fb561bbf930be28ee09510b40ebc80.tar.bz2
manaplus-25a6eae7f4fb561bbf930be28ee09510b40ebc80.tar.xz
manaplus-25a6eae7f4fb561bbf930be28ee09510b40ebc80.zip
Move enums from keyboardconfig.h to keydata.h.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r--src/inputmanager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp
index 32c4ac1f1..7610acf29 100644
--- a/src/inputmanager.cpp
+++ b/src/inputmanager.cpp
@@ -52,11 +52,11 @@ bool InputManager::handleEvent(const SDL_Event &event)
if (event.type == SDL_KEYDOWN)
{
if (setupWindow && setupWindow->isVisible() &&
- keyboard.getNewKeyIndex() > keyboard.KEY_NO_VALUE)
+ keyboard.getNewKeyIndex() > Input::KEY_NO_VALUE)
{
keyboard.setNewKey(event);
keyboard.callbackNewKey();
- keyboard.setNewKeyIndex(keyboard.KEY_NO_VALUE);
+ keyboard.setNewKeyIndex(Input::KEY_NO_VALUE);
return true;
}
@@ -143,8 +143,8 @@ int InputManager::getInputConditionMask()
if (!player_node || !player_node->getDisableGameModifiers())
mask += COND_EMODS;
- if (!keyboard.isActionActive(keyboard.KEY_TARGET)
- && !keyboard.isActionActive(keyboard.KEY_UNTARGET))
+ if (!keyboard.isActionActive(Input::KEY_TARGET)
+ && !keyboard.isActionActive(Input::KEY_UNTARGET))
{
mask += COND_NOTARGET;
}
@@ -157,6 +157,6 @@ bool InputManager::checkKey(const KeyData *key, int mask)
if (!key || (key->condition & mask) != key->condition)
return false;
- return (key->modKeyIndex == KeyboardConfig::KEY_NO_VALUE
+ return (key->modKeyIndex == Input::KEY_NO_VALUE
|| keyboard.isActionActive(key->modKeyIndex));
}