summaryrefslogtreecommitdiff
path: root/src/touchactions.cpp
diff options
context:
space:
mode:
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)
+{
+}
+