ultimatepp/uppsrc/CtrlLib/AKeys.h
cxl fad486f7f9 ide: Ctrl+B now goes back from hex #1194
git-svn-id: svn://ultimatepp.org/upp/trunk@8718 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-07-21 12:50:07 +00:00

24 lines
477 B
C

struct KeyInfo {
const char *name;
dword key[4];
};
NTL_MOVEABLE(KeyInfo)
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); }