Luanti 5.16.0-dev
Loading...
Searching...
No Matches
keycode.h File Reference
#include "irrlichttypes.h"
#include "keys.h"
#include <Keycodes.h>
#include <IEventReceiver.h>
#include <string>
#include <variant>
#include <vector>
Include dependency graph for keycode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  KeyPress
struct  std::hash< KeyPress >

Macros

#define EscapeKey   KeyPress::getSpecialKey("KEY_ESCAPE")

Functions

const std::vector< KeyPress > & getKeySetting (const std::string &settingname)
bool keySettingHasMatch (const std::string &settingname, KeyPress kp)
void clearKeyCache ()

Macro Definition Documentation

◆ EscapeKey

Function Documentation

◆ clearKeyCache()

void clearKeyCache ( )

References g_key_setting_cache.

Referenced by MyEventReceiver::reloadKeybindings().

Here is the caller graph for this function:

◆ getKeySetting()

const std::vector< KeyPress > & getKeySetting ( const std::string & settingname)

References g_key_setting_cache, g_settings, str_split(), and warningstream.

Referenced by keySettingHasMatch(), and MyEventReceiver::reloadKeybindings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ keySettingHasMatch()

bool keySettingHasMatch ( const std::string & settingname,
KeyPress kp )

References CONTAINS, and getKeySetting().

Referenced by GUIChatConsole::OnEvent(), GUIFormSpecMenu::OnEvent(), MyEventReceiver::OnEvent(), and GUIFormSpecMenu::preprocessEvent().

Here is the call graph for this function:
Here is the caller graph for this function: