|
@@ -20,25 +20,25 @@
|
|
|
/**
|
|
|
* All data for a single hotkey. The name (for saving/loading a configfile),
|
|
|
* a list of keycodes and a number to help identifying this hotkey.
|
|
|
*/
|
|
|
struct Hotkey {
|
|
|
Hotkey(uint16 default_keycode, const char *name, int num);
|
|
|
Hotkey(const uint16 *default_keycodes, const char *name, int num);
|
|
|
|
|
|
void AddKeycode(uint16 keycode);
|
|
|
|
|
|
const char *name;
|
|
|
int num;
|
|
|
SmallVector<uint16, 1> keycodes;
|
|
|
std::vector<uint16> keycodes;
|
|
|
};
|
|
|
|
|
|
#define HOTKEY_LIST_END Hotkey((uint16)0, NULL, -1)
|
|
|
|
|
|
struct IniFile;
|
|
|
|
|
|
/**
|
|
|
* List of hotkeys for a window.
|
|
|
*/
|
|
|
struct HotkeyList {
|
|
|
typedef EventState (*GlobalHotkeyHandlerFunc)(int hotkey);
|
|
|
|