diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-09 17:13:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-09 17:13:34 +0300 |
commit | e6bb33fad96878b66ecb32c104d06cd6e5ea9e77 (patch) | |
tree | 9294304f6480140a1cb0383df395893ae7009db7 /src/keyboardconfig.h | |
parent | 443813146a327504a07a507f43117d92296ca8a7 (diff) | |
download | manaverse-e6bb33fad96878b66ecb32c104d06cd6e5ea9e77.tar.gz manaverse-e6bb33fad96878b66ecb32c104d06cd6e5ea9e77.tar.bz2 manaverse-e6bb33fad96878b66ecb32c104d06cd6e5ea9e77.tar.xz manaverse-e6bb33fad96878b66ecb32c104d06cd6e5ea9e77.zip |
Add limited support for keys unknown for SDL.
This keys can be assigned to simple actions and cant be modifier keys.
Diffstat (limited to 'src/keyboardconfig.h')
-rw-r--r-- | src/keyboardconfig.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h index 55e795e61..009ede631 100644 --- a/src/keyboardconfig.h +++ b/src/keyboardconfig.h @@ -28,7 +28,6 @@ #include <string> -//enum SDLKey; union SDL_Event; /** @@ -152,11 +151,15 @@ class KeyboardConfig std::string getKeyShortString(const std::string &key) const; + std::string getKeyStringLong(int index) const; + const std::string &getBindError() const { return mBindError; } SDLKey getKeyFromEvent(const SDL_Event &event) const; + int getKeyValueFromEvent(const SDL_Event &event) const; + void unassignKey(); /** |