From f18489753fb66394ca3683d070d1ba7b4494deb7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 Nov 2013 19:53:24 +0300 Subject: add new gui keys for some letters. --- src/input/keyboarddata.h | 79 +++++++++++++++++++++++++++++++++++++++++++++++- src/input/keydata.h | 11 +++++++ 2 files changed, 89 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/input/keyboarddata.h b/src/input/keyboarddata.h index 42b8f9fc6..ce4f35510 100644 --- a/src/input/keyboarddata.h +++ b/src/input/keyboarddata.h @@ -1974,7 +1974,84 @@ static const KeyData keyData[Input::KEY_TOTAL] = { Input::GRP_DEFAULT, &ActionManager::moveForward, Input::KEY_NO_VALUE, 50, - COND_GAME} + COND_GAME}, + {"keyGUICtrl", + INPUT_KEYBOARD, SDLK_LCTRL, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIb", + INPUT_KEYBOARD, SDLK_b, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIc", + INPUT_KEYBOARD, SDLK_c, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUId", + INPUT_KEYBOARD, SDLK_d, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIe", + INPUT_KEYBOARD, SDLK_e, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIf", + INPUT_KEYBOARD, SDLK_f, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIh", + INPUT_KEYBOARD, SDLK_h, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIk", + INPUT_KEYBOARD, SDLK_k, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIu", + INPUT_KEYBOARD, SDLK_u, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIv", + INPUT_KEYBOARD, SDLK_v, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT}, + {"keyGUIw", + INPUT_KEYBOARD, SDLK_w, + INPUT_UNKNOWN, Input::KEY_NO_VALUE, + Input::GRP_GUICHAN, + nullptr, + Input::KEY_NO_VALUE, 50, + COND_DEFAULT} }; #endif // INPUT_KEYBOARDDATA_H diff --git a/src/input/keydata.h b/src/input/keydata.h index aea8c9244..6c2d6901c 100644 --- a/src/input/keydata.h +++ b/src/input/keydata.h @@ -342,6 +342,17 @@ namespace Input KEY_SHOW_WINDOWS, KEY_CHAT_MOD, KEY_MOVE_FORWARD, + KEY_GUI_CTRL, + KEY_GUI_B, + KEY_GUI_C, + KEY_GUI_D, + KEY_GUI_E, + KEY_GUI_F, + KEY_GUI_H, + KEY_GUI_K, + KEY_GUI_U, + KEY_GUI_V, + KEY_GUI_W, KEY_TOTAL }; } // namespace Input -- cgit v1.2.3-70-g09d2