summaryrefslogtreecommitdiff
path: root/src/touchactions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-05 20:47:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-05 20:48:08 +0300
commitbef65b44075a5c918821f1360804ff5f9f2a32ed (patch)
tree9cdbdf2e2b4abd8b102adb02c673aad9c22a886a /src/touchactions.cpp
parenteb37dba283cab99816c5d227ad3744a8bb19d2c2 (diff)
downloadplus-bef65b44075a5c918821f1360804ff5f9f2a32ed.tar.gz
plus-bef65b44075a5c918821f1360804ff5f9f2a32ed.tar.bz2
plus-bef65b44075a5c918821f1360804ff5f9f2a32ed.tar.xz
plus-bef65b44075a5c918821f1360804ff5f9f2a32ed.zip
add attack and cancel on screen buttons.
Diffstat (limited to 'src/touchactions.cpp')
-rw-r--r--src/touchactions.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/touchactions.cpp b/src/touchactions.cpp
index df18fd366..5f236ea4e 100644
--- a/src/touchactions.cpp
+++ b/src/touchactions.cpp
@@ -20,6 +20,7 @@
#include "touchactions.h"
+#include "actionmanager.h"
#include "being.h"
#include "game.h"
#include "keydata.h"
@@ -33,6 +34,7 @@
#include "debug.h"
+InputEvent tempEvent(0, 0);
bool padClicked(false);
#define impHandler(name) void name(const MouseInput &mouseInput)
@@ -137,3 +139,30 @@ impHandler0(padUp)
padClicked = false;
moveChar(50, 50);
}
+
+impHandler(attackClick)
+{
+ ActionManager::targetAttack(tempEvent);
+}
+
+impHandler(attackUp)
+{
+}
+
+impHandler(attackOut)
+{
+}
+
+impHandler(cancelClick)
+{
+ ActionManager::stopAttack(tempEvent);
+}
+
+impHandler(cancelUp)
+{
+}
+
+impHandler(cancelOut)
+{
+}
+