grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / hidds / kbd / kbd.h
blobd6dcbbaebaa2e2ef1ba6448c8ff0a456c8784162
1 #include <exec/lists.h>
2 #include <dos/bptr.h>
4 struct kbd_data
6 struct MinNode node;
7 void (*callback)(APTR data, UWORD keyCode);
8 APTR callbackdata;
9 };
11 struct kbd_staticdata
13 OOP_AttrBase hiddKbdAB;
14 OOP_AttrBase hwAB;
15 OOP_MethodID hwMB;
16 OOP_Class *kbdClass;
17 OOP_Class *hwClass;
18 OOP_Object *hwObj;
20 struct MinList callbacks;
22 struct Library *cs_OOPBase;
23 struct Library *cs_UtilityBase;
26 struct kbdbase
28 struct Library LibNode;
29 struct kbd_staticdata csd;
32 #define CSD(cl) (&((struct kbdbase *)cl->UserData)->csd)
34 #undef HiddKbdAB
35 #undef HWAttrBase
36 #undef HWBase
37 #define HiddKbdAB (CSD(cl)->hiddKbdAB)
38 #define HWAttrBase (CSD(cl)->hwAB)
39 #define HWBase (CSD(cl)->hwMB)