summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-24 04:26:57 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-26 21:45:24 +0300
commit36e5d21fe06709ba4d12a8619af07b86a676cf8c (patch)
treea9209e16e6f31cd74047f86ef1e642f467e128e2 /src/game.h
parent0921a130f0241a17ffcedf92d602808e18f1614b (diff)
downloadmanaplus-36e5d21fe06709ba4d12a8619af07b86a676cf8c.tar.gz
manaplus-36e5d21fe06709ba4d12a8619af07b86a676cf8c.tar.bz2
manaplus-36e5d21fe06709ba4d12a8619af07b86a676cf8c.tar.xz
manaplus-36e5d21fe06709ba4d12a8619af07b86a676cf8c.zip
Redesign input handling.
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game.h b/src/game.h
index 4469d3774..637c29c7a 100644
--- a/src/game.h
+++ b/src/game.h
@@ -78,11 +78,7 @@ class Game
void handleInput();
- bool handleOutfitsKeys(SDL_Event &event, bool &used);
-
- bool handleSwitchKeys(SDL_Event &event, bool &used);
-
- void handleMoveAndAttack(SDL_Event &event, bool wasDown);
+ void handleMoveAndAttack();
void handleActive(SDL_Event &event);
@@ -110,8 +106,12 @@ class Game
void videoResized(int width, int height);
- private:
+ bool getValidSpeed()
+ { return mValidSpeed; }
+ static bool saveScreenshot();
+
+ private:
void updateHistory(SDL_Event &event);
void checkKeys();