mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
24 lines
477 B
C
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); }
|