Check for SYS/GL during library init. Reason is that
[AROS.git] / rom / usb / classes / bootkeyboard / bootkeyboard.h
blob30b2249bdc2222ebb98db36764eed45c69963b98
1 #ifndef BOOTKEYBOARD_H
2 #define BOOTKEYBOARD_H
4 #include <devices/keyboard.h>
5 #include <intuition/intuition.h>
6 #include <intuition/intuitionbase.h>
7 #include <libraries/mui.h>
8 #include <libraries/gadtools.h>
10 #define ID_ABOUT 0x55555555
11 #define ID_STORE_CONFIG 0xaaaaaaaa
12 #define ID_RESTORE_DEF 0x12345678
13 #define ID_LOAD_LAST 0x56789abc
15 struct ClsGlobalCfg
17 ULONG cgc_ChunkID;
18 ULONG cgc_Length;
19 IPTR cgc_RHEnable;
20 IPTR cgc_ResetDelay;
21 IPTR cgc_CapsLock;
22 IPTR cgc_ISAMap;
23 IPTR cgc_ExtraEmulDisable;
26 struct NepHidBase
28 struct Library nh_Library; /* standard */
29 UWORD nh_Flags; /* various flags */
30 struct Library *nh_UtilityBase; /* utility base */
32 struct Library *nh_MUIBase; /* MUI master base */
33 struct Library *nh_PsdBase; /* Poseidon base */
34 struct Library *nh_IntBase; /* Intuition base */
35 struct Task *nh_GUITask; /* GUI Task */
37 struct ClsGlobalCfg nh_CurrentCGC;
39 BOOL nh_UsingDefaultCfg;
40 Object *nh_App;
41 Object *nh_MainWindow;
42 Object *nh_RHEnableObj;
43 Object *nh_ResetDelayObj;
44 Object *nh_CapsLockObj;
45 Object *nh_ISAMapObj;
46 Object *nh_ExtraEmulObj;
47 Object *nh_UseObj;
48 Object *nh_CloseObj;
50 Object *nh_AboutMI;
51 Object *nh_UseMI;
52 Object *nh_RestoreDefMI;
53 Object *nh_LoadLastMI;
54 Object *nh_MUIPrefsMI;
57 struct NepClassHid
59 struct Node nch_Node; /* Node linkage */
60 struct NepHidBase *nch_ClsBase; /* Up linkage */
61 struct Library *nch_Base; /* Poseidon base */
62 struct PsdDevice *nch_Device; /* Up linkage */
63 struct PsdConfig *nch_Config; /* Up linkage */
64 struct PsdInterface *nch_Interface; /* Up linkage */
65 struct PsdPipe *nch_EP0Pipe; /* Endpoint 0 pipe */
66 struct PsdEndpoint *nch_EP1; /* Endpoint 1 */
67 struct PsdPipe *nch_EP1Pipe; /* Endpoint 1 pipe */
68 IPTR nch_EP1PktSize; /* Size of EP1 packets */
69 UBYTE *nch_EP1Buf; /* Packet buffer for EP1 */
70 struct Task *nch_ReadySigTask; /* Task to send ready signal to */
71 LONG nch_ReadySignal; /* Signal to send when ready */
72 struct Task *nch_Task; /* Subtask */
73 struct MsgPort *nch_TaskMsgPort; /* Message Port of Subtask */
74 struct MsgPort *nch_InpMsgPort; /* input.device MsgPort */
75 struct IOStdReq *nch_InpIOReq; /* input.device IORequest */
76 struct InputEvent nch_FakeEvent; /* Input Event */
77 struct Library *nch_InputBase; /* Pointer to input.device base */
78 IPTR nch_IfNum; /* Interface Number */
79 BOOL nch_CapsLock; /* Caps Lock pressed */
80 UBYTE nch_OldKeyArray[8]; /* Last keys pressed */
81 ULONG nch_OldQualifier; /* Previous qualifiers */
84 #endif /* BOOTKEYBOARD_H */