summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-24 14:48:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-24 14:48:57 +0300
commit39d19da4f4e882e561c080ed443ddf596008649f (patch)
tree449b3f0c1650b51880da0294d2343f0360b1a888 /src
parente4c551344b0713ff551884efb90c6d4d3f3e4613 (diff)
downloadmanaplus-39d19da4f4e882e561c080ed443ddf596008649f.tar.gz
manaplus-39d19da4f4e882e561c080ed443ddf596008649f.tar.bz2
manaplus-39d19da4f4e882e561c080ed443ddf596008649f.tar.xz
manaplus-39d19da4f4e882e561c080ed443ddf596008649f.zip
improve touchactions class.
Diffstat (limited to 'src')
-rw-r--r--src/touchactions.cpp7
-rw-r--r--src/touchactions.h2
2 files changed, 2 insertions, 7 deletions
diff --git a/src/touchactions.cpp b/src/touchactions.cpp
index 0c87c8a12..f16a92e21 100644
--- a/src/touchactions.cpp
+++ b/src/touchactions.cpp
@@ -29,24 +29,19 @@
#include "debug.h"
-InputEvent tempEvent(0, 0);
bool padClicked(false);
int haldJoyPad = 50;
#define impHandler(name) void name(const MouseInput &mouseInput)
#define impHandler0(name) void name(const MouseInput &mouseInput A_UNUSED)
-void setHalfJoyPad(int s)
+void setHalfJoyPad(const int s)
{
haldJoyPad = s;
}
static void moveChar(int x, int y)
{
- Game *const game = Game::instance();
- if (!game)
- return;
-
static const int lim1 = 10;
static const int diff = 20;
diff --git a/src/touchactions.h b/src/touchactions.h
index e85a8ca89..f0b52b097 100644
--- a/src/touchactions.h
+++ b/src/touchactions.h
@@ -34,7 +34,7 @@ decHandler(padEvents);
decHandler(padOut);
decHandler(padUp);
-void setHalfJoyPad(int s);
+void setHalfJoyPad(const int s);
#undef decHandler