#include "keycode.h"
#include "settings.h"
#include "log.h"
#include "debug.h"
#include "util/hex.h"
#include "util/string.h"
#include "util/basic_macros.h"
Classes | |
struct | table_key |
Macros | |
#define | DEFINEKEY1(x, lang) |
#define | DEFINEKEY2(x, ch, lang) |
#define | DEFINEKEY3(ch) |
#define | DEFINEKEY4(ch) |
#define | DEFINEKEY5(ch) |
#define | N_(text) text |
Functions | |
static const table_key & | lookup_keyname (const char *name) |
static const table_key & | lookup_keykey (irr::EKEY_CODE key) |
static const table_key & | lookup_keychar (wchar_t Char) |
const KeyPress & | getKeySetting (const char *settingname) |
void | clearKeyCache () |
irr::EKEY_CODE | keyname_to_keycode (const char *name) |
Variables | |
static const struct table_key | table [] |
const KeyPress | EscapeKey ("KEY_ESCAPE") |
const KeyPress | LMBKey ("KEY_LBUTTON") |
const KeyPress | MMBKey ("KEY_MBUTTON") |
const KeyPress | RMBKey ("KEY_RBUTTON") |
static std::unordered_map< std::string, KeyPress > | g_key_setting_cache |
#define DEFINEKEY1 | ( | x, | |
lang ) |
#define DEFINEKEY2 | ( | x, | |
ch, | |||
lang ) |
#define DEFINEKEY3 | ( | ch | ) |
#define DEFINEKEY4 | ( | ch | ) |
#define DEFINEKEY5 | ( | ch | ) |
#define N_ | ( | text | ) | text |
Referenced by Game::connectToServer(), Game::createClient(), Game::createSingleplayerServer(), Game::init(), and Game::shutdown().
void clearKeyCache | ( | ) |
References g_key_setting_cache.
Referenced by GUIKeyChangeMenu::acceptInput().
const KeyPress & getKeySetting | ( | const char * | settingname | ) |
References g_key_setting_cache, g_settings, and Settings::get().
Referenced by GUIKeyChangeMenu::add_key(), GUIChatConsole::OnEvent(), GUIFormSpecMenu::OnEvent(), MyEventReceiver::OnEvent(), KeyCache::populate(), GUIFormSpecMenu::preprocessEvent(), and RandomInputHandler::step().
irr::EKEY_CODE keyname_to_keycode | ( | const char * | name | ) |
References table_key::Key, and lookup_keyname().
Referenced by id_to_keycode().
|
static |
References table_key::Char, hex_encode(), and table.
Referenced by KeyPress::KeyPress(), KeyPress::KeyPress(), and KeyPress::name().
|
static |
References table_key::Key, and table.
Referenced by KeyPress::KeyPress(), and KeyPress::name().
|
static |
References table_key::Name, and table.
Referenced by KeyPress::KeyPress(), and keyname_to_keycode().
const KeyPress EscapeKey("KEY_ESCAPE") | ( | "KEY_ESCAPE" | ) |
|
static |
Referenced by clearKeyCache(), and getKeySetting().
const KeyPress LMBKey("KEY_LBUTTON") | ( | "KEY_LBUTTON" | ) |
Referenced by MyEventReceiver::OnEvent().
const KeyPress MMBKey("KEY_MBUTTON") | ( | "KEY_MBUTTON" | ) |
Referenced by MyEventReceiver::OnEvent().
const KeyPress RMBKey("KEY_RBUTTON") | ( | "KEY_RBUTTON" | ) |
Referenced by MyEventReceiver::OnEvent().
|
static |
Referenced by GUIFormSpecMenu::acceptInput(), 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(), setstringfield(), and warn_if_field_exists().