diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-05 20:47:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-05 20:48:08 +0300 |
commit | bef65b44075a5c918821f1360804ff5f9f2a32ed (patch) | |
tree | 9cdbdf2e2b4abd8b102adb02c673aad9c22a886a /src/touchactions.cpp | |
parent | eb37dba283cab99816c5d227ad3744a8bb19d2c2 (diff) | |
download | mv-bef65b44075a5c918821f1360804ff5f9f2a32ed.tar.gz mv-bef65b44075a5c918821f1360804ff5f9f2a32ed.tar.bz2 mv-bef65b44075a5c918821f1360804ff5f9f2a32ed.tar.xz mv-bef65b44075a5c918821f1360804ff5f9f2a32ed.zip |
add attack and cancel on screen buttons.
Diffstat (limited to 'src/touchactions.cpp')
-rw-r--r-- | src/touchactions.cpp | 29 |
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) +{ +} + |