From e6bb33fad96878b66ecb32c104d06cd6e5ea9e77 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Mar 2012 17:13:34 +0300 Subject: Add limited support for keys unknown for SDL. This keys can be assigned to simple actions and cant be modifier keys. --- src/keyboardconfig.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/keyboardconfig.h') 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 -//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(); /** -- cgit v1.2.3-70-g09d2