summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-15 20:37:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-15 20:38:27 +0300
commit0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899 (patch)
tree4493d88da75cd7481192432925d6730117077818 /src/actionmanager.cpp
parentb2d5269eca7be4c76379ac2cbeef7a40ad0695bb (diff)
downloadmanaverse-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.gz
manaverse-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.bz2
manaverse-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.xz
manaverse-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.zip
Add move to point configurable shortcuts.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index ededaea52..2c9dd775f 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -145,15 +145,18 @@ impHandler(emote)
return true;
}
}
- else if (inputManager.isActionActive(Input::KEY_MOVE_TO_POINT))
+
+ return false;
+}
+
+impHandler(moveToPoint)
+{
+ // move to point keys
+ int num = event.action - Input::KEY_MOVE_TO_POINT_1;
+ if (socialWindow && num >= 0)
{
- // move to point keys
- int num = event.action - Input::KEY_EMOTE_1;
- if (socialWindow && num >= 0)
- {
- socialWindow->selectPortal(num);
- return true;
- }
+ socialWindow->selectPortal(num);
+ return true;
}
return false;