summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-09 17:13:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-09 17:13:34 +0300
commite6bb33fad96878b66ecb32c104d06cd6e5ea9e77 (patch)
tree9294304f6480140a1cb0383df395893ae7009db7 /src/keyboardconfig.h
parent443813146a327504a07a507f43117d92296ca8a7 (diff)
downloadmv-e6bb33fad96878b66ecb32c104d06cd6e5ea9e77.tar.gz
mv-e6bb33fad96878b66ecb32c104d06cd6e5ea9e77.tar.bz2
mv-e6bb33fad96878b66ecb32c104d06cd6e5ea9e77.tar.xz
mv-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.h5
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();
/**