summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboardconfig.h')
-rw-r--r--src/keyboardconfig.h11
1 files changed, 2 insertions, 9 deletions
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<int> KeysVector;
-typedef KeysVector::iterator KeysVectorIter;
-typedef KeysVector::const_iterator KeysVectorCIter;
-
-typedef std::map<int, KeysVector> 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 */