ultimatepp/uppsrc/CtrlLib/AKeys.h
2024-08-23 08:35:19 +02:00

22 lines
454 B
C

struct KeyInfo {
const char *name;
dword key[4];
};
void RegisterKeyBinding(const char *group, const char *id, KeyInfo& (*info)());
KeyInfo& AK_NULL();
void EditKeys();
String StoreKeys();
void RestoreKeys(const String& data);
dword ParseKeyDesc(CParser& p);
String GetDesc(const KeyInfo& f, bool parenthesis = true);
bool Match(const KeyInfo& k, dword key);
inline
bool Match(KeyInfo& (*k)(), dword key) { return Match((*k)(), key); }