Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / keymaps / common.h
blobd18b3183a715043d92657fb5b1b51b9e9a4a5d38
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Lang: English
6 */
8 #include <devices/keymap.h>
10 #define DEFINE_KEYMAP(kmname) \
12 STATIC char keymapname[] = kmname; \
14 STATIC CONST UBYTE lokeymaptypes[]; \
15 STATIC CONST IPTR lokeymap[]; \
16 STATIC CONST UBYTE locapsable[]; \
17 STATIC CONST UBYTE lorepeatable[]; \
19 STATIC CONST UBYTE hikeymaptypes[]; \
20 STATIC CONST IPTR hikeymap[]; \
21 STATIC CONST UBYTE hicapsable[]; \
22 STATIC CONST UBYTE hirepeatable[]; \
24 CONST struct KeyMapNode km = \
25 { \
26 { \
27 NULL, NULL, 0, 0, keymapname \
28 }, \
29 { \
30 (UBYTE *)lokeymaptypes, \
31 (IPTR *)lokeymap, \
32 (UBYTE *)locapsable, \
33 (UBYTE *)lorepeatable, \
34 (UBYTE *)hikeymaptypes, \
35 (IPTR *)hikeymap, \
36 (UBYTE *)hicapsable, \
37 (UBYTE *)hirepeatable \
38 } \