Added a test for MUIA_Listview_SelectChange.
[AROS.git] / arch / m68k-amiga / hidd / keyboard / kbd.h
blob6e55cad69f2260c4f671b30f63ec263162587ac6
1 #ifndef HIDD_KBD_H
2 #define HIDD_KBD_H
4 /*
5 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Include for the kbd HIDD.
9 Lang: English.
12 #ifndef EXEC_LIBRARIES_H
13 # include <exec/libraries.h>
14 #endif
16 #ifndef OOP_OOP_H
17 # include <oop/oop.h>
18 #endif
20 #ifndef EXEC_SEMAPHORES_H
21 # include <exec/semaphores.h>
22 #endif
24 #ifndef EXEC_INTRERRUPTS_H
25 # include <exec/interrupts.h>
26 #endif
28 #include <dos/bptr.h>
30 /****************************************************************************************/
32 /***** Kbd HIDD *******************/
34 /* IDs */
35 #define IID_Hidd_HwKbd "hidd.kbd.hw"
36 #define CLID_Hidd_HwKbd "hidd.kbd.hw"
38 /* Methods */
39 enum
41 moHidd_Kbd_HandleEvent
44 struct pHidd_Kbd_HandleEvent
46 OOP_MethodID mID;
47 ULONG event;
50 /* misc */
52 struct abdescr
54 STRPTR interfaceid;
55 OOP_AttrBase *attrbase;
58 struct kbd_staticdata
60 struct SignalSemaphore sema; /* Protexting this whole struct */
61 struct Interrupt kbint;
62 struct Resource *ciares;
63 struct timerequest *timerio;
64 struct Library *TimerBase;
66 OOP_Class *kbdclass;
67 OOP_Object *kbdhidd;
68 OOP_AttrBase hiddKbdAB;
69 OOP_MethodID hiddKbdBase;
71 BPTR cs_SegList;
72 struct Library *cs_OOPBase;
75 struct kbdbase
77 struct Library library;
78 struct kbd_staticdata ksd;
81 struct kbd_data
83 VOID (*kbd_callback)(APTR, UWORD);
84 APTR callbackdata;
85 struct Library *TimerBase;
86 UBYTE resetstate;
89 /****************************************************************************************/
91 BOOL obtainattrbases(struct abdescr *abd, struct Library *OOPBase);
92 VOID releaseattrbases(struct abdescr *abd, struct Library *OOPBase);
94 /****************************************************************************************/
96 #define XSD(cl) (&((struct kbdbase *)cl->UserData)->ksd)
98 /****************************************************************************************/
100 #endif /* HIDD_KBD_H */