#include "keycode.h"#include "gettext.h"#include "settings.h"#include "log.h"#include "renderingengine.h"#include "util/string.h"#include <unordered_map>#include <vector>
Include dependency graph for keycode.cpp:Classes | |
| struct | table_key |
Macros | |
| #define | DEFINEKEY1(x, lang) |
| #define | DEFINEKEY2(x, ch, lang) |
| #define | DEFINEKEY3(ch) |
| #define | DEFINEKEY4(ch) |
| #define | DEFINEKEY5(ch) |
Functions | |
| static const table_key & | lookup_keychar (wchar_t Char) |
| static const table_key & | lookup_keykey (EKEY_CODE key) |
| static const table_key & | lookup_keyname (std::string_view name) |
| static const table_key & | lookup_scancode (const u32 scancode) |
| static const table_key & | lookup_scancode (const std::variant< u32, EKEY_CODE > &scancode) |
| KeyPress | getKeySetting (const std::string &settingname) |
| void | clearKeyCache () |
Variables | |
| static std::vector< table_key > | table |
| static const table_key | invalid_key = {"", KEY_UNKNOWN, L'\0', ""} |
| std::unordered_map< std::string, KeyPress > | specialKeyCache |
| static std::unordered_map< std::string, KeyPress > | g_key_setting_cache |
| #define DEFINEKEY1 | ( | x, | |
| lang ) |
| #define DEFINEKEY3 | ( | ch | ) |
| #define DEFINEKEY4 | ( | ch | ) |
| #define DEFINEKEY5 | ( | ch | ) |
| void clearKeyCache | ( | ) |
References g_key_setting_cache.
Referenced by MyEventReceiver::reloadKeybindings().
Here is the caller graph for this function:| KeyPress getKeySetting | ( | const std::string & | settingname | ) |
References g_key_setting_cache, g_settings, Settings::get(), and warningstream.
Referenced by id_to_keypress(), GUIChatConsole::OnEvent(), GUIFormSpecMenu::OnEvent(), MyEventReceiver::OnEvent(), GUIFormSpecMenu::preprocessEvent(), and MyEventReceiver::reloadKeybindings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References table_key::Char, invalid_key, table, and wide_to_utf8().
Referenced by lookup_keyname(), and lookup_scancode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References invalid_key, table_key::Key, and table.
Referenced by lookup_scancode(), and lookup_scancode().
Here is the caller graph for this function:
|
static |
References invalid_key, lookup_keychar(), table_key::Name, table, and utf8_to_wide().
Referenced by KeyPress::KeyPress().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
References RenderingEngine::get_raw_device(), lookup_keychar(), and lookup_keykey().
Referenced by KeyPress::getKeychar(), KeyPress::getKeycode(), lookup_scancode(), KeyPress::name(), and KeyPress::sym().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by clearKeyCache(), and getKeySetting().
|
static |
Referenced by lookup_keychar(), lookup_keykey(), and lookup_keyname().
| std::unordered_map<std::string, KeyPress> specialKeyCache |
Referenced by KeyPress::getSpecialKey().
|
static |
Referenced by GUIFormSpecMenu::acceptInput(), Database_SQLite3::checkColumn(), Database_SQLite3::checkTable(), getboolfield(), getboolfield_default(), getenumfield(), getflagsfield(), getfloatfield(), getfloatfield_default(), getintfield(), getintfield_default(), getstringfield(), getstringfield(), getstringfield_default(), getstringlistfield(), GUIFormSpecMenu::getTable(), getv3s16field_default(), MetaDataRef::handleFromTable(), NodeMetaRef::handleFromTable(), ModApiAuth::l_auth_create(), ModApiAuth::l_auth_list_names(), ModApiAuth::l_auth_save(), ModApiCraft::l_clear_craft(), LuaSettings::l_get_flags(), ModApiServer::l_get_player_information(), ModApiServer::l_get_player_privs(), ModApiMainMenu::l_get_table_index(), ModApiUtil::l_get_version(), ModApiCraft::l_register_craft(), ModApiItem::l_register_item_raw(), lookup_keychar(), lookup_keykey(), lookup_keyname(), ModApiAuth::pushAuthEntry(), read_content_features(), read_flags_table(), ScriptApiEnv::read_nodenames(), read_object_properties(), read_tool_capabilities(), GUIFormSpecMenu::regenerateGui(), setboolfield(), setfloatfield(), setintfield(), and setstringfield().