From 36e5d21fe06709ba4d12a8619af07b86a676cf8c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Mar 2012 04:26:57 +0300 Subject: Redesign input handling. --- src/game.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/game.h') 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(); -- cgit v1.2.3-60-g2f50