diff options
Diffstat (limited to 'src/keyboardconfig.h')
-rw-r--r-- | src/keyboardconfig.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h index 88d525522..4fc1bdc51 100644 --- a/src/keyboardconfig.h +++ b/src/keyboardconfig.h @@ -75,6 +75,8 @@ class KeyboardConfig KeysVector *getActionVector(const SDL_Event &event); + KeysVector *getActionVectorByKey(int i); + std::string getKeyName(int key); bool isActionActive(int index) const; @@ -87,6 +89,10 @@ class KeyboardConfig int getActionId(const SDL_Event &event); + void handleRepeat(int time); + + void resetRepeat(int key); + private: bool mEnabled; /**< Flag to respond to key input */ @@ -97,6 +103,8 @@ class KeyboardConfig KeyToActionMap mKeyToAction; KeyToIdMap mKeyToId; + + KeyTimeMap mKeyTimeMap; }; extern KeyboardConfig keyboard; |