summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-03 01:23:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-03 01:23:49 +0300
commitbd7821e9648186abf1fa06c6ded9e61755b1d369 (patch)
tree5827ca54b6d61897d272d8008de05265fe9edf59 /src/actionmanager.cpp
parentd1b20afbb5ba06a58dcda04760c523e71c0e6bcd (diff)
downloadplus-bd7821e9648186abf1fa06c6ded9e61755b1d369.tar.gz
plus-bd7821e9648186abf1fa06c6ded9e61755b1d369.tar.bz2
plus-bd7821e9648186abf1fa06c6ded9e61755b1d369.tar.xz
plus-bd7821e9648186abf1fa06c6ded9e61755b1d369.zip
add action "move forward" default key unassigned.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index e34482c13..7d3b653a8 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -139,6 +139,13 @@ impHandler(moveRight)
return false;
}
+impHandler(moveForward)
+{
+ if (inputManager.isActionActive(Input::KEY_EMOTE))
+ return directRight(event);
+ return false;
+}
+
impHandler(emote)
{
const int emotion = 1 + event.action - Input::KEY_EMOTE_1;