summaryrefslogtreecommitdiff
path: root/src/touchactions.cpp
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/touchactions.cpp
parente4c551344b0713ff551884efb90c6d4d3f3e4613 (diff)
downloadmv-39d19da4f4e882e561c080ed443ddf596008649f.tar.gz
mv-39d19da4f4e882e561c080ed443ddf596008649f.tar.bz2
mv-39d19da4f4e882e561c080ed443ddf596008649f.tar.xz
mv-39d19da4f4e882e561c080ed443ddf596008649f.zip
improve touchactions class.
Diffstat (limited to 'src/touchactions.cpp')
-rw-r--r--src/touchactions.cpp7
1 files changed, 1 insertions, 6 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;