From bb258f09a0b50f6382be2ff36637191a8b103c3f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Apr 2012 21:05:01 +0300 Subject: Move some more code from keyboardconfig to inputmanager. --- src/keyboardconfig.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/keyboardconfig.h') diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h index 3f3e5f95d..71e43c230 100644 --- a/src/keyboardconfig.h +++ b/src/keyboardconfig.h @@ -35,13 +35,6 @@ union SDL_Event; -typedef std::vector KeysVector; -typedef KeysVector::iterator KeysVectorIter; -typedef KeysVector::const_iterator KeysVectorCIter; - -typedef std::map KeyToActionMap; -typedef KeyToActionMap::iterator KeyToActionMapIter; - class KeyboardConfig { public: @@ -78,14 +71,14 @@ class KeyboardConfig int getKeyValueFromEvent(const SDL_Event &event) const; - void updateKeyActionMap(); - bool triggerAction(const SDL_Event &event); std::string getKeyName(int key); bool isActionActive(int index) const; + void update(); + private: bool mEnabled; /**< Flag to respond to key input */ -- cgit v1.2.3-70-g09d2