Merge branch 'master' of git://localhost/acess2
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / include / wm_hotkeys.h
1 /*
2  * Acess2 Window Manager v3
3  * - By John Hodge (thePowersGang)
4  * 
5  * wm_hotkeys.h
6  * - Hotkey and key shortcut code
7  */
8 #ifndef _WM_HOTKEYS_H_
9 #define _WM_HOTKEYS_H_
10
11 typedef struct sHotkey  tHotkey;
12 typedef struct sHotkeyTarget    tHotkeyTarget;
13
14 struct sHotkey
15 {
16         tHotkey *Next;
17         
18         const char      *Target;
19
20          int    nKeys;
21         uint32_t        Keys[];
22 };
23
24 struct sHotkeyTarget
25 {
26         struct sHotkeyTarget    *Next;
27
28         const char      *Name;
29         
30         tWindow *Window;
31          int    Index;
32 };
33
34
35 extern void     WM_Hotkey_Register(int nKeys, uint32_t *Keys, const char *ActionName);
36 extern void     WM_Hotkey_RegisterAction(const char *ActionName, tWindow *Target, uint16_t Index);
37 extern void     WM_Hotkey_KeyDown(uint32_t Scancode);
38 extern void     WM_Hotkey_KeyUp(uint32_t Scancode);
39
40 #endif
41

UCC git Repository :: git.ucc.asn.au