3#ifndef GAME_CLIENT_COMPONENTS_BINDS_H
4#define GAME_CLIENT_COMPONENTS_BINDS_H
37 CBindSlot
GetBindSlot(
const char *pBindString)
const;
42 virtual int Sizeof()
const override {
return sizeof(*this); }
48 virtual int Sizeof()
const override {
return sizeof(*this); }
67 void Bind(
int KeyId,
const char *pStr,
bool FreeOnly =
false,
int ModifierCombination =
MODIFIER_NONE);
70 const char *
Get(
int KeyId,
int ModifierCombination);
71 void GetKey(
const char *pBindStr,
char *pBuf,
size_t BufSize);
CBindSlot(int Key, int ModifierMask)
Definition: binds.h:31
int m_Key
Definition: binds.h:28
int m_ModifierMask
Definition: binds.h:29
virtual int Sizeof() const override
Definition: binds.h:48
virtual bool OnInput(const IInput::CEvent &Event) override
Definition: binds.cpp:14
CBinds * m_pBinds
Definition: binds.h:47
bool m_MouseOnAction
Definition: binds.h:52
void Bind(int KeyId, const char *pStr, bool FreeOnly=false, int ModifierCombination=MODIFIER_NONE)
Definition: binds.cpp:41
~CBinds()
Definition: binds.cpp:36
static void ConfigSaveCallback(IConfigManager *pConfigManager, void *pUserData)
Definition: binds.cpp:473
const char * Get(int KeyId, int ModifierCombination)
Definition: binds.cpp:231
CBindSlot GetBindSlot(const char *pBindString) const
Definition: binds.cpp:415
virtual bool OnInput(const IInput::CEvent &Event) override
Definition: binds.cpp:114
static int GetModifierMask(IInput *pInput)
Definition: binds.cpp:69
static const char * GetModifierName(int Modifier)
Definition: binds.cpp:442
virtual void OnConsoleInit() override
Definition: binds.cpp:307
static void ConUnbindAll(IConsole::IResult *pResult, void *pUserData)
Definition: binds.cpp:409
void SetDefaults()
Definition: binds.cpp:260
static void ConBind(IConsole::IResult *pResult, void *pUserData)
Definition: binds.cpp:319
void GetKey(const char *pBindStr, char *pBuf, size_t BufSize)
Definition: binds.cpp:238
void UnbindAll()
Definition: binds.cpp:219
char * m_aapKeyBindings[MODIFIER_COMBINATION_COUNT][KEY_LAST]
Definition: binds.h:85
static int GetModifierMaskOfKey(int Key)
Definition: binds.cpp:93
class IConsole * GetConsole() const
Definition: binds.h:21
static void GetKeyBindModifiersName(int ModifierCombination, char *pBuf, size_t BufSize)
Definition: binds.cpp:460
virtual int Sizeof() const override
Definition: binds.h:42
CBindsSpecial m_SpecialBinds
Definition: binds.h:65
void SetDDRaceBinds(bool FreeOnly)
Definition: binds.cpp:506
@ MODIFIER_COMBINATION_COUNT
Definition: binds.h:62
@ MODIFIER_CTRL
Definition: binds.h:57
@ MODIFIER_GUI
Definition: binds.h:60
@ MODIFIER_SHIFT
Definition: binds.h:59
@ MODIFIER_ALT
Definition: binds.h:58
@ MODIFIER_COUNT
Definition: binds.h:61
@ MODIFIER_NONE
Definition: binds.h:56
static void ConBinds(IConsole::IResult *pResult, void *pUserData)
Definition: binds.cpp:350
static void ConUnbind(IConsole::IResult *pResult, void *pUserData)
Definition: binds.cpp:392
CBinds()
Definition: binds.cpp:30
std::vector< CBindSlot > m_vActiveBinds
Definition: binds.h:86
Definition: component.h:20
class IConsole * Console() const
Definition: component.cpp:18
@ KEY_LAST
Definition: keys.h:319