Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
keycode.h File Reference
#include "irrlichttypes.h"
#include <Keycodes.h>
#include <IEventReceiver.h>
#include <string>
#include <variant>
+ 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")
 
#define LMBKey   KeyPress::getSpecialKey("KEY_LBUTTON")
 
#define MMBKey   KeyPress::getSpecialKey("KEY_MBUTTON")
 
#define RMBKey   KeyPress::getSpecialKey("KEY_RBUTTON")
 

Functions

KeyPress getKeySetting (const std::string &settingname)
 
void clearKeyCache ()
 

Macro Definition Documentation

◆ EscapeKey

◆ LMBKey

#define LMBKey   KeyPress::getSpecialKey("KEY_LBUTTON")

◆ MMBKey

#define MMBKey   KeyPress::getSpecialKey("KEY_MBUTTON")

◆ RMBKey

#define RMBKey   KeyPress::getSpecialKey("KEY_RBUTTON")

Function Documentation

◆ clearKeyCache()

void clearKeyCache ( )

References g_key_setting_cache.

Referenced by MyEventReceiver::reloadKeybindings().

+ Here is the caller graph for this function:

◆ getKeySetting()

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: