summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-06 00:44:58 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-07 00:11:31 +0300
commit631c4390274133697ab57437f8bef13a946aa3b7 (patch)
tree72e77f602a9cba37ac506708041021f503df7c4d /src/keyboardconfig.h
parent1e7f9bf8dbb641fc3aae6f72ac421dc8a7a48ce3 (diff)
downloadplus-631c4390274133697ab57437f8bef13a946aa3b7.tar.gz
plus-631c4390274133697ab57437f8bef13a946aa3b7.tar.bz2
plus-631c4390274133697ab57437f8bef13a946aa3b7.tar.xz
plus-631c4390274133697ab57437f8bef13a946aa3b7.zip
Split setup keyboard texts and actions.
Diffstat (limited to 'src/keyboardconfig.h')
-rw-r--r--src/keyboardconfig.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h
index 7efe5a16a..3299dcf51 100644
--- a/src/keyboardconfig.h
+++ b/src/keyboardconfig.h
@@ -48,7 +48,6 @@ struct KeyFunction
{
const char* configField; /** Field index that is in the config file. */
int defaultValue; /** The default key value used. */
- std::string caption; /** The caption value for the key function. */
int value; /** The actual value that is used. */
int grp; /** The key group */
ActionFuncPtr action; /** The key action function */
@@ -85,7 +84,7 @@ class KeyboardConfig
/**
* Determines if any key assignments are the same as each other.
*/
- bool hasConflicts();
+ bool hasConflicts(int &key1, int &key2);
/**
* Calls a function back so the key re-assignment(s) can be seen.
@@ -114,12 +113,6 @@ class KeyboardConfig
{ return mEnabled; }
/**
- * Get the key caption, providing more meaning to the user.
- */
- const std::string &getKeyCaption(int index) const
- { return mKey[index].caption; }
-
- /**
* Get the key function index by providing the keys value.
*/
int getKeyIndex(const SDL_Event &event, int grp = 1) const;
@@ -163,9 +156,6 @@ class KeyboardConfig
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;
@@ -186,7 +176,6 @@ class KeyboardConfig
enum KeyAction
{
KEY_NO_VALUE = -1,
- KEY_SEPARATOR1,
KEY_MOVE_UP,
KEY_MOVE_DOWN,
KEY_MOVE_LEFT,
@@ -213,7 +202,6 @@ class KeyboardConfig
KEY_PATHFIND,
KEY_OK,
KEY_QUIT,
- KEY_SEPARATOR2,
KEY_SHORTCUTS_KEY,
KEY_SHORTCUT_1,
KEY_SHORTCUT_2,
@@ -235,7 +223,6 @@ class KeyboardConfig
KEY_SHORTCUT_18,
KEY_SHORTCUT_19,
KEY_SHORTCUT_20,
- KEY_SEPARATOR3,
KEY_WINDOW_HELP,
KEY_WINDOW_STATUS,
KEY_WINDOW_INVENTORY,
@@ -258,7 +245,6 @@ class KeyboardConfig
KEY_WINDOW_DIDYOUKNOW,
KEY_PREV_SOCIAL_TAB,
KEY_NEXT_SOCIAL_TAB,
- KEY_SEPARATOR4,
KEY_EMOTE,
KEY_EMOTE_1,
KEY_EMOTE_2,
@@ -308,11 +294,9 @@ class KeyboardConfig
KEY_EMOTE_46,
KEY_EMOTE_47,
KEY_EMOTE_48,
- KEY_SEPARATOR5,
KEY_WEAR_OUTFIT,
KEY_COPY_OUTFIT,
KEY_COPY_EQUIPED_OUTFIT,
- KEY_SEPARATOR6,
KEY_TOGGLE_CHAT,
KEY_SCROLL_CHAT_UP,
KEY_SCROLL_CHAT_DOWN,
@@ -323,7 +307,6 @@ class KeyboardConfig
KEY_CHAT_NEXT_HISTORY,
KEY_AUTOCOMPLETE_CHAT,
KEY_DEACTIVATE_CHAT,
- KEY_SEPARATOR7,
KEY_IGNORE_INPUT_1,
KEY_IGNORE_INPUT_2,
KEY_DIRECT_UP,
@@ -373,8 +356,6 @@ class KeyboardConfig
Uint8 *mActiveKeys; /**< Stores a list of all the keys */
- std::string mBindError;
-
KeyToActionMap mKeyToAction;
};