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

Functions

const std::vector< KeyPress > & getKeySetting (const std::string &settingname)
 
bool keySettingHasMatch (const std::string &settingname, KeyPress kp)
 
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()

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

References g_key_setting_cache, g_settings, Settings::get(), str_split(), and warningstream.

Referenced by id_to_keypress(), 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: