1 /////////////////////////////////////////////////////////////////////////
2 // $Id: sdlkeys.h,v 1.3 2008/02/05 22:57:41 sshwarts Exp $
3 /////////////////////////////////////////////////////////////////////////
5 // This file is simply a list of SDL key symbols taken from <SDL/SDL_keysym.h>.
6 // The order in this file is not important. In sdl.cc, DEF_SDL_KEY() is
7 // defined as a macro and then it includes this file to fill in all the data in
8 // its key mapping table.
10 // The symbols, such as SDLK_RETURN, are used for two purposes. They
11 // are converted into a string (by the # operator in processor), which is
12 // compared to the host key name in the keymap file. Also, the value of
13 // the symbol is inserted into the key mapping table. Then the value is
14 // compared with the keysym field of each key up/down event as it arrives.
16 // If you get undefined symbol errors in this file, it must mean that
17 // your SDL library version doesn't define those same SDLK_* symbols in
18 // <SDL/SDL_keysym.h>. You can't fix it with #ifdef SDLK_SYM because
19 // they are enums, so you'll just have to comment out the offending line.
20 // The list was generated using symbols from SDL 1.2.3.
22 DEF_SDL_KEY( SDLK_UNKNOWN
)
23 DEF_SDL_KEY( SDLK_FIRST
)
24 DEF_SDL_KEY( SDLK_BACKSPACE
)
25 DEF_SDL_KEY( SDLK_TAB
)
26 DEF_SDL_KEY( SDLK_CLEAR
)
27 DEF_SDL_KEY( SDLK_RETURN
)
28 DEF_SDL_KEY( SDLK_PAUSE
)
29 DEF_SDL_KEY( SDLK_ESCAPE
)
30 DEF_SDL_KEY( SDLK_SPACE
)
31 DEF_SDL_KEY( SDLK_EXCLAIM
)
32 DEF_SDL_KEY( SDLK_QUOTEDBL
)
33 DEF_SDL_KEY( SDLK_HASH
)
34 DEF_SDL_KEY( SDLK_DOLLAR
)
35 DEF_SDL_KEY( SDLK_AMPERSAND
)
36 DEF_SDL_KEY( SDLK_QUOTE
)
37 DEF_SDL_KEY( SDLK_LEFTPAREN
)
38 DEF_SDL_KEY( SDLK_RIGHTPAREN
)
39 DEF_SDL_KEY( SDLK_ASTERISK
)
40 DEF_SDL_KEY( SDLK_PLUS
)
41 DEF_SDL_KEY( SDLK_COMMA
)
42 DEF_SDL_KEY( SDLK_MINUS
)
43 DEF_SDL_KEY( SDLK_PERIOD
)
44 DEF_SDL_KEY( SDLK_SLASH
)
55 DEF_SDL_KEY( SDLK_COLON
)
56 DEF_SDL_KEY( SDLK_SEMICOLON
)
57 DEF_SDL_KEY( SDLK_LESS
)
58 DEF_SDL_KEY( SDLK_EQUALS
)
59 DEF_SDL_KEY( SDLK_GREATER
)
60 DEF_SDL_KEY( SDLK_QUESTION
)
61 DEF_SDL_KEY( SDLK_AT
)
63 DEF_SDL_KEY( Skip uppercase letters )
65 DEF_SDL_KEY( SDLK_LEFTBRACKET
)
66 DEF_SDL_KEY( SDLK_BACKSLASH
)
67 DEF_SDL_KEY( SDLK_RIGHTBRACKET
)
68 DEF_SDL_KEY( SDLK_CARET
)
69 DEF_SDL_KEY( SDLK_UNDERSCORE
)
70 DEF_SDL_KEY( SDLK_BACKQUOTE
)
97 DEF_SDL_KEY( SDLK_DELETE
)
98 DEF_SDL_KEY( SDLK_WORLD_0
)
99 DEF_SDL_KEY( SDLK_WORLD_1
)
100 DEF_SDL_KEY( SDLK_WORLD_2
)
101 DEF_SDL_KEY( SDLK_WORLD_3
)
102 DEF_SDL_KEY( SDLK_WORLD_4
)
103 DEF_SDL_KEY( SDLK_WORLD_5
)
104 DEF_SDL_KEY( SDLK_WORLD_6
)
105 DEF_SDL_KEY( SDLK_WORLD_7
)
106 DEF_SDL_KEY( SDLK_WORLD_8
)
107 DEF_SDL_KEY( SDLK_WORLD_9
)
108 DEF_SDL_KEY( SDLK_WORLD_10
)
109 DEF_SDL_KEY( SDLK_WORLD_11
)
110 DEF_SDL_KEY( SDLK_WORLD_12
)
111 DEF_SDL_KEY( SDLK_WORLD_13
)
112 DEF_SDL_KEY( SDLK_WORLD_14
)
113 DEF_SDL_KEY( SDLK_WORLD_15
)
114 DEF_SDL_KEY( SDLK_WORLD_16
)
115 DEF_SDL_KEY( SDLK_WORLD_17
)
116 DEF_SDL_KEY( SDLK_WORLD_18
)
117 DEF_SDL_KEY( SDLK_WORLD_19
)
118 DEF_SDL_KEY( SDLK_WORLD_20
)
119 DEF_SDL_KEY( SDLK_WORLD_21
)
120 DEF_SDL_KEY( SDLK_WORLD_22
)
121 DEF_SDL_KEY( SDLK_WORLD_23
)
122 DEF_SDL_KEY( SDLK_WORLD_24
)
123 DEF_SDL_KEY( SDLK_WORLD_25
)
124 DEF_SDL_KEY( SDLK_WORLD_26
)
125 DEF_SDL_KEY( SDLK_WORLD_27
)
126 DEF_SDL_KEY( SDLK_WORLD_28
)
127 DEF_SDL_KEY( SDLK_WORLD_29
)
128 DEF_SDL_KEY( SDLK_WORLD_30
)
129 DEF_SDL_KEY( SDLK_WORLD_31
)
130 DEF_SDL_KEY( SDLK_WORLD_32
)
131 DEF_SDL_KEY( SDLK_WORLD_33
)
132 DEF_SDL_KEY( SDLK_WORLD_34
)
133 DEF_SDL_KEY( SDLK_WORLD_35
)
134 DEF_SDL_KEY( SDLK_WORLD_36
)
135 DEF_SDL_KEY( SDLK_WORLD_37
)
136 DEF_SDL_KEY( SDLK_WORLD_38
)
137 DEF_SDL_KEY( SDLK_WORLD_39
)
138 DEF_SDL_KEY( SDLK_WORLD_40
)
139 DEF_SDL_KEY( SDLK_WORLD_41
)
140 DEF_SDL_KEY( SDLK_WORLD_42
)
141 DEF_SDL_KEY( SDLK_WORLD_43
)
142 DEF_SDL_KEY( SDLK_WORLD_44
)
143 DEF_SDL_KEY( SDLK_WORLD_45
)
144 DEF_SDL_KEY( SDLK_WORLD_46
)
145 DEF_SDL_KEY( SDLK_WORLD_47
)
146 DEF_SDL_KEY( SDLK_WORLD_48
)
147 DEF_SDL_KEY( SDLK_WORLD_49
)
148 DEF_SDL_KEY( SDLK_WORLD_50
)
149 DEF_SDL_KEY( SDLK_WORLD_51
)
150 DEF_SDL_KEY( SDLK_WORLD_52
)
151 DEF_SDL_KEY( SDLK_WORLD_53
)
152 DEF_SDL_KEY( SDLK_WORLD_54
)
153 DEF_SDL_KEY( SDLK_WORLD_55
)
154 DEF_SDL_KEY( SDLK_WORLD_56
)
155 DEF_SDL_KEY( SDLK_WORLD_57
)
156 DEF_SDL_KEY( SDLK_WORLD_58
)
157 DEF_SDL_KEY( SDLK_WORLD_59
)
158 DEF_SDL_KEY( SDLK_WORLD_60
)
159 DEF_SDL_KEY( SDLK_WORLD_61
)
160 DEF_SDL_KEY( SDLK_WORLD_62
)
161 DEF_SDL_KEY( SDLK_WORLD_63
)
162 DEF_SDL_KEY( SDLK_WORLD_64
)
163 DEF_SDL_KEY( SDLK_WORLD_65
)
164 DEF_SDL_KEY( SDLK_WORLD_66
)
165 DEF_SDL_KEY( SDLK_WORLD_67
)
166 DEF_SDL_KEY( SDLK_WORLD_68
)
167 DEF_SDL_KEY( SDLK_WORLD_69
)
168 DEF_SDL_KEY( SDLK_WORLD_70
)
169 DEF_SDL_KEY( SDLK_WORLD_71
)
170 DEF_SDL_KEY( SDLK_WORLD_72
)
171 DEF_SDL_KEY( SDLK_WORLD_73
)
172 DEF_SDL_KEY( SDLK_WORLD_74
)
173 DEF_SDL_KEY( SDLK_WORLD_75
)
174 DEF_SDL_KEY( SDLK_WORLD_76
)
175 DEF_SDL_KEY( SDLK_WORLD_77
)
176 DEF_SDL_KEY( SDLK_WORLD_78
)
177 DEF_SDL_KEY( SDLK_WORLD_79
)
178 DEF_SDL_KEY( SDLK_WORLD_80
)
179 DEF_SDL_KEY( SDLK_WORLD_81
)
180 DEF_SDL_KEY( SDLK_WORLD_82
)
181 DEF_SDL_KEY( SDLK_WORLD_83
)
182 DEF_SDL_KEY( SDLK_WORLD_84
)
183 DEF_SDL_KEY( SDLK_WORLD_85
)
184 DEF_SDL_KEY( SDLK_WORLD_86
)
185 DEF_SDL_KEY( SDLK_WORLD_87
)
186 DEF_SDL_KEY( SDLK_WORLD_88
)
187 DEF_SDL_KEY( SDLK_WORLD_89
)
188 DEF_SDL_KEY( SDLK_WORLD_90
)
189 DEF_SDL_KEY( SDLK_WORLD_91
)
190 DEF_SDL_KEY( SDLK_WORLD_92
)
191 DEF_SDL_KEY( SDLK_WORLD_93
)
192 DEF_SDL_KEY( SDLK_WORLD_94
)
193 DEF_SDL_KEY( SDLK_WORLD_95
)
194 DEF_SDL_KEY( SDLK_KP0
)
195 DEF_SDL_KEY( SDLK_KP1
)
196 DEF_SDL_KEY( SDLK_KP2
)
197 DEF_SDL_KEY( SDLK_KP3
)
198 DEF_SDL_KEY( SDLK_KP4
)
199 DEF_SDL_KEY( SDLK_KP5
)
200 DEF_SDL_KEY( SDLK_KP6
)
201 DEF_SDL_KEY( SDLK_KP7
)
202 DEF_SDL_KEY( SDLK_KP8
)
203 DEF_SDL_KEY( SDLK_KP9
)
204 DEF_SDL_KEY( SDLK_KP_PERIOD
)
205 DEF_SDL_KEY( SDLK_KP_DIVIDE
)
206 DEF_SDL_KEY( SDLK_KP_MULTIPLY
)
207 DEF_SDL_KEY( SDLK_KP_MINUS
)
208 DEF_SDL_KEY( SDLK_KP_PLUS
)
209 DEF_SDL_KEY( SDLK_KP_ENTER
)
210 DEF_SDL_KEY( SDLK_KP_EQUALS
)
211 DEF_SDL_KEY( SDLK_UP
)
212 DEF_SDL_KEY( SDLK_DOWN
)
213 DEF_SDL_KEY( SDLK_RIGHT
)
214 DEF_SDL_KEY( SDLK_LEFT
)
215 DEF_SDL_KEY( SDLK_INSERT
)
216 DEF_SDL_KEY( SDLK_HOME
)
217 DEF_SDL_KEY( SDLK_END
)
218 DEF_SDL_KEY( SDLK_PAGEUP
)
219 DEF_SDL_KEY( SDLK_PAGEDOWN
)
220 DEF_SDL_KEY( SDLK_F1
)
221 DEF_SDL_KEY( SDLK_F2
)
222 DEF_SDL_KEY( SDLK_F3
)
223 DEF_SDL_KEY( SDLK_F4
)
224 DEF_SDL_KEY( SDLK_F5
)
225 DEF_SDL_KEY( SDLK_F6
)
226 DEF_SDL_KEY( SDLK_F7
)
227 DEF_SDL_KEY( SDLK_F8
)
228 DEF_SDL_KEY( SDLK_F9
)
229 DEF_SDL_KEY( SDLK_F10
)
230 DEF_SDL_KEY( SDLK_F11
)
231 DEF_SDL_KEY( SDLK_F12
)
232 DEF_SDL_KEY( SDLK_F13
)
233 DEF_SDL_KEY( SDLK_F14
)
234 DEF_SDL_KEY( SDLK_F15
)
235 DEF_SDL_KEY( SDLK_NUMLOCK
)
236 DEF_SDL_KEY( SDLK_CAPSLOCK
)
237 DEF_SDL_KEY( SDLK_SCROLLOCK
)
238 DEF_SDL_KEY( SDLK_RSHIFT
)
239 DEF_SDL_KEY( SDLK_LSHIFT
)
240 DEF_SDL_KEY( SDLK_RCTRL
)
241 DEF_SDL_KEY( SDLK_LCTRL
)
242 DEF_SDL_KEY( SDLK_RALT
)
243 DEF_SDL_KEY( SDLK_LALT
)
244 DEF_SDL_KEY( SDLK_RMETA
)
245 DEF_SDL_KEY( SDLK_LMETA
)
246 DEF_SDL_KEY( SDLK_LSUPER
)
247 DEF_SDL_KEY( SDLK_RSUPER
)
248 DEF_SDL_KEY( SDLK_MODE
)
249 DEF_SDL_KEY( SDLK_COMPOSE
)
250 DEF_SDL_KEY( SDLK_HELP
)
251 DEF_SDL_KEY( SDLK_PRINT
)
252 DEF_SDL_KEY( SDLK_SYSREQ
)
253 DEF_SDL_KEY( SDLK_BREAK
)
254 DEF_SDL_KEY( SDLK_MENU
)
255 DEF_SDL_KEY( SDLK_POWER
)
256 DEF_SDL_KEY( SDLK_EURO
)
257 DEF_SDL_KEY( SDLK_UNDO
)