diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-15 20:37:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-15 20:38:27 +0300 |
commit | 0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899 (patch) | |
tree | 4493d88da75cd7481192432925d6730117077818 /src/actionmanager.cpp | |
parent | b2d5269eca7be4c76379ac2cbeef7a40ad0695bb (diff) | |
download | plus-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.gz plus-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.bz2 plus-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.xz plus-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.zip |
Add move to point configurable shortcuts.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 19 |
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; |