From 39d19da4f4e882e561c080ed443ddf596008649f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Mar 2013 14:48:57 +0300 Subject: improve touchactions class. --- src/touchactions.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/touchactions.cpp') 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; -- cgit v1.2.3-60-g2f50