started to fix the manuals for EBuf. Implemented a
[neuro.git] / include / extlib_sdl.h
blobe4d28441e1dfba4a1a4a6b8a3ef17165b5afd7f0
1 #ifndef __EXTLIB_SDL_H
2 #define __EXTLIB_SDL_H
4 /* override keymap macros to support SDL */
5 #ifdef XK_BackSpace
7 #undef XK_BackSpace
8 #undef XK_Tab
9 #undef XK_Linefeed
10 #undef XK_Clear
11 #undef XK_Return
12 #undef XK_Pause
13 #undef XK_Scroll_Lock
14 #undef XK_Sys_Req
15 #undef XK_Escape
16 #undef XK_Delete
17 #undef XK_Up
18 #undef XK_Down
19 #undef XK_Right
20 #undef XK_Left
21 #undef XK_Home
22 #undef XK_Page_Up
23 #undef XK_Page_Down
25 /* numeric keypad */
26 #undef XK_KP_0
27 #undef XK_KP_1
28 #undef XK_KP_2
29 #undef XK_KP_3
30 #undef XK_KP_4
31 #undef XK_KP_5
32 #undef XK_KP_6
33 #undef XK_KP_7
34 #undef XK_KP_8
35 #undef XK_KP_9
36 #undef XK_KP_Decimal
37 #undef XK_KP_Divide
38 #undef XK_KP_Multiply
39 #undef XK_KP_Subtract
40 #undef XK_KP_Add
41 #undef XK_KP_Enter
42 #undef XK_KP_Equal
44 /* numlock elements */
45 #undef XK_KP_Insert
46 #undef XK_KP_End
47 #undef XK_KP_Down
48 #undef XK_KP_Page_Down
49 #undef XK_KP_Left
50 #undef XK_KP_Begin
51 #undef XK_KP_Right
52 #undef XK_KP_Home
53 #undef XK_KP_Up
54 #undef XK_KP_Page_Up
55 #undef XK_KP_Delete
57 #endif /* XK_BackSpace */
61 #define XK_BackSpace 0x0008 /* back space, back char */
62 #define XK_Tab 0x0009
63 #define XK_Linefeed 0x000A /* Linefeed, LF */
64 #define XK_Clear 0x000C
65 #define XK_Return 0x000D /* Return, enter */
66 #define XK_Pause 0x0013 /* Pause, hold */
67 #define XK_Scroll_Lock 0x0014
68 #define XK_Sys_Req 0x0015
69 #define XK_Escape 0x001B
70 #define XK_Delete 0x007E /* Delete, rubout */
72 #define XK_Up 0x0111 /* Move up, up arrow */
73 #define XK_Down 0x0112 /* Move down, down arrow */
74 #define XK_Right 0x0113 /* Move right, right arrow */
75 #define XK_Left 0x0114 /* Move left, left arrow */
76 #define XK_Home 0x0116
77 /*#define XK_Prior 0x0155*/ /* Prior, previous */
78 #define XK_Page_Up 0x0118
79 /*#define XK_Next 0x0156*/ /* Next */
80 #define XK_Page_Down 0x0119
81 /*#define XK_End 0x0157*/ /* EOL */
82 /*#define XK_Begin 0x0158*/ /* BOL */
84 /* numeric keypad */
85 #define XK_KP_0 256
86 #define XK_KP_1 257
87 #define XK_KP_2 258
88 #define XK_KP_3 259
89 #define XK_KP_4 260
90 #define XK_KP_5 261
91 #define XK_KP_6 262
92 #define XK_KP_7 263
93 #define XK_KP_8 264
94 #define XK_KP_9 265
95 #define XK_KP_Decimal 266
96 #define XK_KP_Divide 267
97 #define XK_KP_Multiply 268
98 #define XK_KP_Subtract 269
99 #define XK_KP_Add 270
100 #define XK_KP_Enter 271
101 #define XK_KP_Equal 272
103 /* numlock elements */
105 #define XK_KP_Insert
106 #define XK_KP_End
107 #define XK_KP_Down
108 #define XK_KP_Page_Down
109 #define XK_KP_Left
110 #define XK_KP_Begin
111 #define XK_KP_Right
112 #define XK_KP_Home
113 #define XK_KP_Up
114 #define XK_KP_Page_Up
115 #define XK_KP_Delete
118 #endif /* NOT __EXTLIB_SDL_H */