Commit 67122d70f29a3659989fd53cfcb527345b1e67f6
1 parent
920a05c3
Cleaned up
Showing
8 changed files
with
1578 additions
and
16 deletions
00-sun/sun.c
01-cannon/cannon.c
02-cannon_wide/cannon.c
03-bullet/cannon.c
04-shoot/cannon.c
05-target/cannon.c
graphmanual.html
0 → 100644
1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
2 | +<HTML> | |
3 | +<HEAD> | |
4 | + <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8"> | |
5 | + <TITLE>SDLKey</TITLE> | |
6 | +</HEAD> | |
7 | +<BODY LANG="en-US" TEXT="#000000" LINK="#0000ee" VLINK="#551a8b" BGCOLOR="#fff8dc" DIR="LTR"> | |
8 | +<H1>Simple graphics library</H1> | |
9 | +<P>The library contains wrappers around basic primitives from the | |
10 | +SDL_gfx library. It is intended to provide basic graphics | |
11 | +capabilities to the beginners learning C. It is expected, that after | |
12 | +getting enough proficiency in C, the programmer will use SDL library | |
13 | +directly. The library is contained in the file <I>primlib.c</I>. | |
14 | +Every file using it should include <I>primlib.h</I>. The library | |
15 | +requires <A HREF="http://www.libsdl.org/">SDL 1.2</A> and <A HREF="http://www.ferzkopp.net/%7Easchiffler/Software/SDL_gfx-2.0/">SDL_gfx</A> | |
16 | +and can be downloaded <A HREF="primlib.tgz">here</A></P> | |
17 | +<H1>The coordinate system</H1> | |
18 | +<P>The coordinate system origin is located at upper-left corner of a | |
19 | +graphics window. Width and height of the graphics window can be | |
20 | +queried using the screenWidth() and screenHeight() functions, | |
21 | +respectively. Before using any of the graphics functions initgraph() | |
22 | +must be called. After the drawing operations, to make the updates to | |
23 | +the screen visible, call updateScreen(). Before calling | |
24 | +updateScreen() once again, you must clear the screen and redraw the | |
25 | +entire scene.</P> | |
26 | +<H1>Compilation</H1> | |
27 | +<P>The following command line can be used to compile programs using | |
28 | +the library:</P> | |
29 | +<PRE STYLE="margin-bottom: 0.2in">gcc -D_REENTRANT progname.c primlib.c -o progname -lm -lSDL -lpthread -lSDL_gfx</PRE><P> | |
30 | +where <I>progname.c</I> is the name of the main program module.</P> | |
31 | +<H1>Function reference</H1> | |
32 | +<H2 CLASS="western">int gfx_init();</H2> | |
33 | +<P>Must be called before any graphic operation. Returns <I>0</I> on | |
34 | +success, non-zero on failure.</P> | |
35 | +<H2 CLASS="western">enum color {BLACK, RED, GREEN, BLUE, CYAN, | |
36 | +MAGENTA, YELLOW, WHITE, COLOR_MAX};</H2> | |
37 | +<P>Enumeration type, representing available colors.</P> | |
38 | +<H2 CLASS="western">void gfx_pixel(int x, int y, enum color c);</H2> | |
39 | +<P>Put pixel with color <I>c</I> at coordinates <I>(x,y)</I>.</P> | |
40 | +<H2 CLASS="western">void gfx_line(int x1, int y1, int x2, int y2, enum | |
41 | +color c);</H2> | |
42 | +<P>Draw line from <I>(x1,y1)</I> to <I>(x2,y2)</I>, using color <I>c</I>.</P> | |
43 | +<H2 CLASS="western">void gfx_rect(int x1, int y1, int x2, int y2, enum | |
44 | +color c);</H2> | |
45 | +<P>Draw rectangle with upper left corner at <I>(x1,y1)</I> and lower | |
46 | +right corner at <I>(x2,y2)</I>, using color <I>c</I>.</P> | |
47 | +<H2 CLASS="western">void gfx_filledRect(int x1, int y1, int x2, int y2, | |
48 | +enum color c);</H2> | |
49 | +<P>Draw filled rectangle with upper left corner at <I>(x1,y1)</I> and | |
50 | +lower right corner at <I>(x2,y2)</I>, using color <I>c</I>.</P> | |
51 | +<H2 CLASS="western">void gfx_filledTriangle(int x1, int y1, int x2, int y2, int x3, int y3, | |
52 | +enum color c);</H2> | |
53 | +<P>Draw filled triangle with vertex coordinates <I>(x1,y1)</I>, <I>(x2,y2)</I> and <I>(x3,y3)</I>, using color <I>c</I>.</P> | |
54 | +<H2 CLASS="western">void gfx_circle(int x, int y, int r, enum color c);</H2> | |
55 | +<P>Draw circle with a center at <I>(x,y)</I> and radius <I>r</I>, | |
56 | +using color <I>c</I>.</P> | |
57 | +<H2 CLASS="western">void gfx_filledCircle(int x, int y, int r, enum color | |
58 | +c);</H2> | |
59 | +<P>Draw filled circle with a center at <I>(x,y)</I> and radius r, | |
60 | +using color c.</P> | |
61 | +<H2 CLASS="western">void gfx_textout(int x, int y, char *s, enum color | |
62 | +c);</H2> | |
63 | +<P>Print text <I>s</I> starting at the coordinates <I>(x,y)</I>, | |
64 | +using color <I>c</I>.</P> | |
65 | +<H2 CLASS="western">int gfx_screenWidth();</H2> | |
66 | +<P>Get the width of the screen.</P> | |
67 | +<H2 CLASS="western">int gfx_screenHeight();</H2> | |
68 | +<P>Get the height of the screen.</P> | |
69 | +<H2 CLASS="western">void gfx_updateScreen();</H2> | |
70 | +<P>Makes the result of drawing functions since the last update | |
71 | +visible on the screen.</P> | |
72 | +<H2 CLASS="western">int gfx_pollkey();</H2> | |
73 | +<P>Return the code of pressed key, do not wait for the keypress. | |
74 | +Return-1 if no key has been pressed.</P> | |
75 | +<H2 CLASS="western">int gfx_getkey();</H2> | |
76 | +<P>Wait for the keypress and return the key code.</P> | |
77 | +<H2 CLASS="western">int gfx_isKeyDown(int key);</H2> | |
78 | +<P>Return 1, if the <I>key</I> key is pressed, 0 otherwise.</P> | |
79 | +<H1>List of keycodes used by keyboard functions</H1> | |
80 | +<P STYLE="margin-bottom: 0in"><BR> | |
81 | +</P> | |
82 | +<TABLE WIDTH=528 BORDER=1 CELLPADDING=2 CELLSPACING=3 STYLE="page-break-before: always"> | |
83 | + <COL WIDTH=168> | |
84 | + <COL WIDTH=169> | |
85 | + <COL WIDTH=165> | |
86 | + <THEAD> | |
87 | + <TR VALIGN=TOP> | |
88 | + <TH WIDTH=168> | |
89 | + <P ALIGN=LEFT>Keycode</P> | |
90 | + </TH> | |
91 | + <TH WIDTH=169> | |
92 | + <P ALIGN=LEFT>ASCII value</P> | |
93 | + </TH> | |
94 | + <TH WIDTH=165> | |
95 | + <P ALIGN=LEFT>Common name</P> | |
96 | + </TH> | |
97 | + </TR> | |
98 | + </THEAD> | |
99 | + <TBODY> | |
100 | + <TR VALIGN=TOP> | |
101 | + <TD WIDTH=168> | |
102 | + <P ALIGN=LEFT>SDLK_BACKSPACE</P> | |
103 | + </TD> | |
104 | + <TD WIDTH=169> | |
105 | + <P ALIGN=LEFT>'\b'</P> | |
106 | + </TD> | |
107 | + <TD WIDTH=165> | |
108 | + <P ALIGN=LEFT>backspace</P> | |
109 | + </TD> | |
110 | + </TR> | |
111 | + <TR VALIGN=TOP> | |
112 | + <TD WIDTH=168> | |
113 | + <P ALIGN=LEFT>SDLK_TAB</P> | |
114 | + </TD> | |
115 | + <TD WIDTH=169> | |
116 | + <P ALIGN=LEFT>'\t'</P> | |
117 | + </TD> | |
118 | + <TD WIDTH=165> | |
119 | + <P ALIGN=LEFT>tab</P> | |
120 | + </TD> | |
121 | + </TR> | |
122 | + <TR VALIGN=TOP> | |
123 | + <TD WIDTH=168> | |
124 | + <P ALIGN=LEFT>SDLK_CLEAR</P> | |
125 | + </TD> | |
126 | + <TD WIDTH=169> | |
127 | + <P ALIGN=LEFT> </P> | |
128 | + </TD> | |
129 | + <TD WIDTH=165> | |
130 | + <P ALIGN=LEFT>clear</P> | |
131 | + </TD> | |
132 | + </TR> | |
133 | + <TR VALIGN=TOP> | |
134 | + <TD WIDTH=168> | |
135 | + <P ALIGN=LEFT>SDLK_RETURN</P> | |
136 | + </TD> | |
137 | + <TD WIDTH=169> | |
138 | + <P ALIGN=LEFT>'\r'</P> | |
139 | + </TD> | |
140 | + <TD WIDTH=165> | |
141 | + <P ALIGN=LEFT>return</P> | |
142 | + </TD> | |
143 | + </TR> | |
144 | + <TR VALIGN=TOP> | |
145 | + <TD WIDTH=168> | |
146 | + <P ALIGN=LEFT>SDLK_PAUSE</P> | |
147 | + </TD> | |
148 | + <TD WIDTH=169> | |
149 | + <P ALIGN=LEFT> </P> | |
150 | + </TD> | |
151 | + <TD WIDTH=165> | |
152 | + <P ALIGN=LEFT>pause</P> | |
153 | + </TD> | |
154 | + </TR> | |
155 | + <TR VALIGN=TOP> | |
156 | + <TD WIDTH=168> | |
157 | + <P ALIGN=LEFT>SDLK_ESCAPE</P> | |
158 | + </TD> | |
159 | + <TD WIDTH=169> | |
160 | + <P ALIGN=LEFT>'^['</P> | |
161 | + </TD> | |
162 | + <TD WIDTH=165> | |
163 | + <P ALIGN=LEFT>escape</P> | |
164 | + </TD> | |
165 | + </TR> | |
166 | + <TR VALIGN=TOP> | |
167 | + <TD WIDTH=168> | |
168 | + <P ALIGN=LEFT>SDLK_SPACE</P> | |
169 | + </TD> | |
170 | + <TD WIDTH=169> | |
171 | + <P ALIGN=LEFT>' '</P> | |
172 | + </TD> | |
173 | + <TD WIDTH=165> | |
174 | + <P ALIGN=LEFT>space</P> | |
175 | + </TD> | |
176 | + </TR> | |
177 | + <TR VALIGN=TOP> | |
178 | + <TD WIDTH=168> | |
179 | + <P ALIGN=LEFT>SDLK_EXCLAIM</P> | |
180 | + </TD> | |
181 | + <TD WIDTH=169> | |
182 | + <P ALIGN=LEFT>'!'</P> | |
183 | + </TD> | |
184 | + <TD WIDTH=165> | |
185 | + <P ALIGN=LEFT>exclaim</P> | |
186 | + </TD> | |
187 | + </TR> | |
188 | + <TR VALIGN=TOP> | |
189 | + <TD WIDTH=168> | |
190 | + <P ALIGN=LEFT>SDLK_QUOTEDBL</P> | |
191 | + </TD> | |
192 | + <TD WIDTH=169> | |
193 | + <P ALIGN=LEFT>'"'</P> | |
194 | + </TD> | |
195 | + <TD WIDTH=165> | |
196 | + <P ALIGN=LEFT>quotedbl</P> | |
197 | + </TD> | |
198 | + </TR> | |
199 | + <TR VALIGN=TOP> | |
200 | + <TD WIDTH=168> | |
201 | + <P ALIGN=LEFT>SDLK_HASH</P> | |
202 | + </TD> | |
203 | + <TD WIDTH=169> | |
204 | + <P ALIGN=LEFT>'#'</P> | |
205 | + </TD> | |
206 | + <TD WIDTH=165> | |
207 | + <P ALIGN=LEFT>hash</P> | |
208 | + </TD> | |
209 | + </TR> | |
210 | + <TR VALIGN=TOP> | |
211 | + <TD WIDTH=168> | |
212 | + <P ALIGN=LEFT>SDLK_DOLLAR</P> | |
213 | + </TD> | |
214 | + <TD WIDTH=169> | |
215 | + <P ALIGN=LEFT>'$'</P> | |
216 | + </TD> | |
217 | + <TD WIDTH=165> | |
218 | + <P ALIGN=LEFT>dollar</P> | |
219 | + </TD> | |
220 | + </TR> | |
221 | + <TR VALIGN=TOP> | |
222 | + <TD WIDTH=168> | |
223 | + <P ALIGN=LEFT>SDLK_AMPERSAND</P> | |
224 | + </TD> | |
225 | + <TD WIDTH=169> | |
226 | + <P ALIGN=LEFT>'&'</P> | |
227 | + </TD> | |
228 | + <TD WIDTH=165> | |
229 | + <P ALIGN=LEFT>ampersand</P> | |
230 | + </TD> | |
231 | + </TR> | |
232 | + <TR VALIGN=TOP> | |
233 | + <TD WIDTH=168> | |
234 | + <P ALIGN=LEFT>SDLK_QUOTE</P> | |
235 | + </TD> | |
236 | + <TD WIDTH=169> | |
237 | + <P ALIGN=LEFT>'''</P> | |
238 | + </TD> | |
239 | + <TD WIDTH=165> | |
240 | + <P ALIGN=LEFT>quote</P> | |
241 | + </TD> | |
242 | + </TR> | |
243 | + <TR VALIGN=TOP> | |
244 | + <TD WIDTH=168> | |
245 | + <P ALIGN=LEFT>SDLK_LEFTPAREN</P> | |
246 | + </TD> | |
247 | + <TD WIDTH=169> | |
248 | + <P ALIGN=LEFT>'('</P> | |
249 | + </TD> | |
250 | + <TD WIDTH=165> | |
251 | + <P ALIGN=LEFT>left parenthesis</P> | |
252 | + </TD> | |
253 | + </TR> | |
254 | + <TR VALIGN=TOP> | |
255 | + <TD WIDTH=168> | |
256 | + <P ALIGN=LEFT>SDLK_RIGHTPAREN</P> | |
257 | + </TD> | |
258 | + <TD WIDTH=169> | |
259 | + <P ALIGN=LEFT>')'</P> | |
260 | + </TD> | |
261 | + <TD WIDTH=165> | |
262 | + <P ALIGN=LEFT>right parenthesis</P> | |
263 | + </TD> | |
264 | + </TR> | |
265 | + <TR VALIGN=TOP> | |
266 | + <TD WIDTH=168> | |
267 | + <P ALIGN=LEFT>SDLK_ASTERISK</P> | |
268 | + </TD> | |
269 | + <TD WIDTH=169> | |
270 | + <P ALIGN=LEFT>'*'</P> | |
271 | + </TD> | |
272 | + <TD WIDTH=165> | |
273 | + <P ALIGN=LEFT>asterisk</P> | |
274 | + </TD> | |
275 | + </TR> | |
276 | + <TR VALIGN=TOP> | |
277 | + <TD WIDTH=168> | |
278 | + <P ALIGN=LEFT>SDLK_PLUS</P> | |
279 | + </TD> | |
280 | + <TD WIDTH=169> | |
281 | + <P ALIGN=LEFT>'+'</P> | |
282 | + </TD> | |
283 | + <TD WIDTH=165> | |
284 | + <P ALIGN=LEFT>plus sign</P> | |
285 | + </TD> | |
286 | + </TR> | |
287 | + <TR VALIGN=TOP> | |
288 | + <TD WIDTH=168> | |
289 | + <P ALIGN=LEFT>SDLK_COMMA</P> | |
290 | + </TD> | |
291 | + <TD WIDTH=169> | |
292 | + <P ALIGN=LEFT>','</P> | |
293 | + </TD> | |
294 | + <TD WIDTH=165> | |
295 | + <P ALIGN=LEFT>comma</P> | |
296 | + </TD> | |
297 | + </TR> | |
298 | + <TR VALIGN=TOP> | |
299 | + <TD WIDTH=168> | |
300 | + <P ALIGN=LEFT>SDLK_MINUS</P> | |
301 | + </TD> | |
302 | + <TD WIDTH=169> | |
303 | + <P ALIGN=LEFT>'-'</P> | |
304 | + </TD> | |
305 | + <TD WIDTH=165> | |
306 | + <P ALIGN=LEFT>minus sign</P> | |
307 | + </TD> | |
308 | + </TR> | |
309 | + <TR VALIGN=TOP> | |
310 | + <TD WIDTH=168> | |
311 | + <P ALIGN=LEFT>SDLK_PERIOD</P> | |
312 | + </TD> | |
313 | + <TD WIDTH=169> | |
314 | + <P ALIGN=LEFT>'.'</P> | |
315 | + </TD> | |
316 | + <TD WIDTH=165> | |
317 | + <P ALIGN=LEFT>period</P> | |
318 | + </TD> | |
319 | + </TR> | |
320 | + <TR VALIGN=TOP> | |
321 | + <TD WIDTH=168> | |
322 | + <P ALIGN=LEFT>SDLK_SLASH</P> | |
323 | + </TD> | |
324 | + <TD WIDTH=169> | |
325 | + <P ALIGN=LEFT>'/'</P> | |
326 | + </TD> | |
327 | + <TD WIDTH=165> | |
328 | + <P ALIGN=LEFT>forward slash</P> | |
329 | + </TD> | |
330 | + </TR> | |
331 | + <TR VALIGN=TOP> | |
332 | + <TD WIDTH=168> | |
333 | + <P ALIGN=LEFT>SDLK_0</P> | |
334 | + </TD> | |
335 | + <TD WIDTH=169> | |
336 | + <P ALIGN=LEFT>'0'</P> | |
337 | + </TD> | |
338 | + <TD WIDTH=165> | |
339 | + <P ALIGN=LEFT>0</P> | |
340 | + </TD> | |
341 | + </TR> | |
342 | + <TR VALIGN=TOP> | |
343 | + <TD WIDTH=168> | |
344 | + <P ALIGN=LEFT>SDLK_1</P> | |
345 | + </TD> | |
346 | + <TD WIDTH=169> | |
347 | + <P ALIGN=LEFT>'1'</P> | |
348 | + </TD> | |
349 | + <TD WIDTH=165> | |
350 | + <P ALIGN=LEFT>1</P> | |
351 | + </TD> | |
352 | + </TR> | |
353 | + <TR VALIGN=TOP> | |
354 | + <TD WIDTH=168> | |
355 | + <P ALIGN=LEFT>SDLK_2</P> | |
356 | + </TD> | |
357 | + <TD WIDTH=169> | |
358 | + <P ALIGN=LEFT>'2'</P> | |
359 | + </TD> | |
360 | + <TD WIDTH=165> | |
361 | + <P ALIGN=LEFT>2</P> | |
362 | + </TD> | |
363 | + </TR> | |
364 | + <TR VALIGN=TOP> | |
365 | + <TD WIDTH=168> | |
366 | + <P ALIGN=LEFT>SDLK_3</P> | |
367 | + </TD> | |
368 | + <TD WIDTH=169> | |
369 | + <P ALIGN=LEFT>'3'</P> | |
370 | + </TD> | |
371 | + <TD WIDTH=165> | |
372 | + <P ALIGN=LEFT>3</P> | |
373 | + </TD> | |
374 | + </TR> | |
375 | + <TR VALIGN=TOP> | |
376 | + <TD WIDTH=168> | |
377 | + <P ALIGN=LEFT>SDLK_4</P> | |
378 | + </TD> | |
379 | + <TD WIDTH=169> | |
380 | + <P ALIGN=LEFT>'4'</P> | |
381 | + </TD> | |
382 | + <TD WIDTH=165> | |
383 | + <P ALIGN=LEFT>4</P> | |
384 | + </TD> | |
385 | + </TR> | |
386 | + <TR VALIGN=TOP> | |
387 | + <TD WIDTH=168> | |
388 | + <P ALIGN=LEFT>SDLK_5</P> | |
389 | + </TD> | |
390 | + <TD WIDTH=169> | |
391 | + <P ALIGN=LEFT>'5'</P> | |
392 | + </TD> | |
393 | + <TD WIDTH=165> | |
394 | + <P ALIGN=LEFT>5</P> | |
395 | + </TD> | |
396 | + </TR> | |
397 | + <TR VALIGN=TOP> | |
398 | + <TD WIDTH=168> | |
399 | + <P ALIGN=LEFT>SDLK_6</P> | |
400 | + </TD> | |
401 | + <TD WIDTH=169> | |
402 | + <P ALIGN=LEFT>'6'</P> | |
403 | + </TD> | |
404 | + <TD WIDTH=165> | |
405 | + <P ALIGN=LEFT>6</P> | |
406 | + </TD> | |
407 | + </TR> | |
408 | + <TR VALIGN=TOP> | |
409 | + <TD WIDTH=168> | |
410 | + <P ALIGN=LEFT>SDLK_7</P> | |
411 | + </TD> | |
412 | + <TD WIDTH=169> | |
413 | + <P ALIGN=LEFT>'7'</P> | |
414 | + </TD> | |
415 | + <TD WIDTH=165> | |
416 | + <P ALIGN=LEFT>7</P> | |
417 | + </TD> | |
418 | + </TR> | |
419 | + <TR VALIGN=TOP> | |
420 | + <TD WIDTH=168> | |
421 | + <P ALIGN=LEFT>SDLK_8</P> | |
422 | + </TD> | |
423 | + <TD WIDTH=169> | |
424 | + <P ALIGN=LEFT>'8'</P> | |
425 | + </TD> | |
426 | + <TD WIDTH=165> | |
427 | + <P ALIGN=LEFT>8</P> | |
428 | + </TD> | |
429 | + </TR> | |
430 | + <TR VALIGN=TOP> | |
431 | + <TD WIDTH=168> | |
432 | + <P ALIGN=LEFT>SDLK_9</P> | |
433 | + </TD> | |
434 | + <TD WIDTH=169> | |
435 | + <P ALIGN=LEFT>'9'</P> | |
436 | + </TD> | |
437 | + <TD WIDTH=165> | |
438 | + <P ALIGN=LEFT>9</P> | |
439 | + </TD> | |
440 | + </TR> | |
441 | + <TR VALIGN=TOP> | |
442 | + <TD WIDTH=168> | |
443 | + <P ALIGN=LEFT>SDLK_COLON</P> | |
444 | + </TD> | |
445 | + <TD WIDTH=169> | |
446 | + <P ALIGN=LEFT>':'</P> | |
447 | + </TD> | |
448 | + <TD WIDTH=165> | |
449 | + <P ALIGN=LEFT>colon</P> | |
450 | + </TD> | |
451 | + </TR> | |
452 | + <TR VALIGN=TOP> | |
453 | + <TD WIDTH=168> | |
454 | + <P ALIGN=LEFT>SDLK_SEMICOLON</P> | |
455 | + </TD> | |
456 | + <TD WIDTH=169> | |
457 | + <P ALIGN=LEFT>';'</P> | |
458 | + </TD> | |
459 | + <TD WIDTH=165> | |
460 | + <P ALIGN=LEFT>semicolon</P> | |
461 | + </TD> | |
462 | + </TR> | |
463 | + <TR VALIGN=TOP> | |
464 | + <TD WIDTH=168> | |
465 | + <P ALIGN=LEFT>SDLK_LESS</P> | |
466 | + </TD> | |
467 | + <TD WIDTH=169> | |
468 | + <P ALIGN=LEFT>'<'</P> | |
469 | + </TD> | |
470 | + <TD WIDTH=165> | |
471 | + <P ALIGN=LEFT>less-than sign</P> | |
472 | + </TD> | |
473 | + </TR> | |
474 | + <TR VALIGN=TOP> | |
475 | + <TD WIDTH=168> | |
476 | + <P ALIGN=LEFT>SDLK_EQUALS</P> | |
477 | + </TD> | |
478 | + <TD WIDTH=169> | |
479 | + <P ALIGN=LEFT>'='</P> | |
480 | + </TD> | |
481 | + <TD WIDTH=165> | |
482 | + <P ALIGN=LEFT>equals sign</P> | |
483 | + </TD> | |
484 | + </TR> | |
485 | + <TR VALIGN=TOP> | |
486 | + <TD WIDTH=168> | |
487 | + <P ALIGN=LEFT>SDLK_GREATER</P> | |
488 | + </TD> | |
489 | + <TD WIDTH=169> | |
490 | + <P ALIGN=LEFT>'>'</P> | |
491 | + </TD> | |
492 | + <TD WIDTH=165> | |
493 | + <P ALIGN=LEFT>greater-than sign</P> | |
494 | + </TD> | |
495 | + </TR> | |
496 | + <TR VALIGN=TOP> | |
497 | + <TD WIDTH=168> | |
498 | + <P ALIGN=LEFT>SDLK_QUESTION</P> | |
499 | + </TD> | |
500 | + <TD WIDTH=169> | |
501 | + <P ALIGN=LEFT>'?'</P> | |
502 | + </TD> | |
503 | + <TD WIDTH=165> | |
504 | + <P ALIGN=LEFT>question mark</P> | |
505 | + </TD> | |
506 | + </TR> | |
507 | + <TR VALIGN=TOP> | |
508 | + <TD WIDTH=168> | |
509 | + <P ALIGN=LEFT>SDLK_AT</P> | |
510 | + </TD> | |
511 | + <TD WIDTH=169> | |
512 | + <P ALIGN=LEFT>'@'</P> | |
513 | + </TD> | |
514 | + <TD WIDTH=165> | |
515 | + <P ALIGN=LEFT>at</P> | |
516 | + </TD> | |
517 | + </TR> | |
518 | + <TR VALIGN=TOP> | |
519 | + <TD WIDTH=168> | |
520 | + <P ALIGN=LEFT>SDLK_LEFTBRACKET</P> | |
521 | + </TD> | |
522 | + <TD WIDTH=169> | |
523 | + <P ALIGN=LEFT>'['</P> | |
524 | + </TD> | |
525 | + <TD WIDTH=165> | |
526 | + <P ALIGN=LEFT>left bracket</P> | |
527 | + </TD> | |
528 | + </TR> | |
529 | + <TR VALIGN=TOP> | |
530 | + <TD WIDTH=168> | |
531 | + <P ALIGN=LEFT>SDLK_BACKSLASH</P> | |
532 | + </TD> | |
533 | + <TD WIDTH=169> | |
534 | + <P ALIGN=LEFT>'\'</P> | |
535 | + </TD> | |
536 | + <TD WIDTH=165> | |
537 | + <P ALIGN=LEFT>backslash</P> | |
538 | + </TD> | |
539 | + </TR> | |
540 | + <TR VALIGN=TOP> | |
541 | + <TD WIDTH=168> | |
542 | + <P ALIGN=LEFT>SDLK_RIGHTBRACKET</P> | |
543 | + </TD> | |
544 | + <TD WIDTH=169> | |
545 | + <P ALIGN=LEFT>']'</P> | |
546 | + </TD> | |
547 | + <TD WIDTH=165> | |
548 | + <P ALIGN=LEFT>right bracket</P> | |
549 | + </TD> | |
550 | + </TR> | |
551 | + <TR VALIGN=TOP> | |
552 | + <TD WIDTH=168> | |
553 | + <P ALIGN=LEFT>SDLK_CARET</P> | |
554 | + </TD> | |
555 | + <TD WIDTH=169> | |
556 | + <P ALIGN=LEFT>'^'</P> | |
557 | + </TD> | |
558 | + <TD WIDTH=165> | |
559 | + <P ALIGN=LEFT>caret</P> | |
560 | + </TD> | |
561 | + </TR> | |
562 | + <TR VALIGN=TOP> | |
563 | + <TD WIDTH=168> | |
564 | + <P ALIGN=LEFT>SDLK_UNDERSCORE</P> | |
565 | + </TD> | |
566 | + <TD WIDTH=169> | |
567 | + <P ALIGN=LEFT>'_'</P> | |
568 | + </TD> | |
569 | + <TD WIDTH=165> | |
570 | + <P ALIGN=LEFT>underscore</P> | |
571 | + </TD> | |
572 | + </TR> | |
573 | + <TR VALIGN=TOP> | |
574 | + <TD WIDTH=168> | |
575 | + <P ALIGN=LEFT>SDLK_BACKQUOTE</P> | |
576 | + </TD> | |
577 | + <TD WIDTH=169> | |
578 | + <P ALIGN=LEFT>'`'</P> | |
579 | + </TD> | |
580 | + <TD WIDTH=165> | |
581 | + <P ALIGN=LEFT>grave</P> | |
582 | + </TD> | |
583 | + </TR> | |
584 | + <TR VALIGN=TOP> | |
585 | + <TD WIDTH=168> | |
586 | + <P ALIGN=LEFT>SDLK_a</P> | |
587 | + </TD> | |
588 | + <TD WIDTH=169> | |
589 | + <P ALIGN=LEFT>'a'</P> | |
590 | + </TD> | |
591 | + <TD WIDTH=165> | |
592 | + <P ALIGN=LEFT>a</P> | |
593 | + </TD> | |
594 | + </TR> | |
595 | + <TR VALIGN=TOP> | |
596 | + <TD WIDTH=168> | |
597 | + <P ALIGN=LEFT>SDLK_b</P> | |
598 | + </TD> | |
599 | + <TD WIDTH=169> | |
600 | + <P ALIGN=LEFT>'b'</P> | |
601 | + </TD> | |
602 | + <TD WIDTH=165> | |
603 | + <P ALIGN=LEFT>b</P> | |
604 | + </TD> | |
605 | + </TR> | |
606 | + <TR VALIGN=TOP> | |
607 | + <TD WIDTH=168> | |
608 | + <P ALIGN=LEFT>SDLK_c</P> | |
609 | + </TD> | |
610 | + <TD WIDTH=169> | |
611 | + <P ALIGN=LEFT>'c'</P> | |
612 | + </TD> | |
613 | + <TD WIDTH=165> | |
614 | + <P ALIGN=LEFT>c</P> | |
615 | + </TD> | |
616 | + </TR> | |
617 | + <TR VALIGN=TOP> | |
618 | + <TD WIDTH=168> | |
619 | + <P ALIGN=LEFT>SDLK_d</P> | |
620 | + </TD> | |
621 | + <TD WIDTH=169> | |
622 | + <P ALIGN=LEFT>'d'</P> | |
623 | + </TD> | |
624 | + <TD WIDTH=165> | |
625 | + <P ALIGN=LEFT>d</P> | |
626 | + </TD> | |
627 | + </TR> | |
628 | + <TR VALIGN=TOP> | |
629 | + <TD WIDTH=168> | |
630 | + <P ALIGN=LEFT>SDLK_e</P> | |
631 | + </TD> | |
632 | + <TD WIDTH=169> | |
633 | + <P ALIGN=LEFT>'e'</P> | |
634 | + </TD> | |
635 | + <TD WIDTH=165> | |
636 | + <P ALIGN=LEFT>e</P> | |
637 | + </TD> | |
638 | + </TR> | |
639 | + <TR VALIGN=TOP> | |
640 | + <TD WIDTH=168> | |
641 | + <P ALIGN=LEFT>SDLK_f</P> | |
642 | + </TD> | |
643 | + <TD WIDTH=169> | |
644 | + <P ALIGN=LEFT>'f'</P> | |
645 | + </TD> | |
646 | + <TD WIDTH=165> | |
647 | + <P ALIGN=LEFT>f</P> | |
648 | + </TD> | |
649 | + </TR> | |
650 | + <TR VALIGN=TOP> | |
651 | + <TD WIDTH=168> | |
652 | + <P ALIGN=LEFT>SDLK_g</P> | |
653 | + </TD> | |
654 | + <TD WIDTH=169> | |
655 | + <P ALIGN=LEFT>'g'</P> | |
656 | + </TD> | |
657 | + <TD WIDTH=165> | |
658 | + <P ALIGN=LEFT>g</P> | |
659 | + </TD> | |
660 | + </TR> | |
661 | + <TR VALIGN=TOP> | |
662 | + <TD WIDTH=168> | |
663 | + <P ALIGN=LEFT>SDLK_h</P> | |
664 | + </TD> | |
665 | + <TD WIDTH=169> | |
666 | + <P ALIGN=LEFT>'h'</P> | |
667 | + </TD> | |
668 | + <TD WIDTH=165> | |
669 | + <P ALIGN=LEFT>h</P> | |
670 | + </TD> | |
671 | + </TR> | |
672 | + <TR VALIGN=TOP> | |
673 | + <TD WIDTH=168> | |
674 | + <P ALIGN=LEFT>SDLK_i</P> | |
675 | + </TD> | |
676 | + <TD WIDTH=169> | |
677 | + <P ALIGN=LEFT>'i'</P> | |
678 | + </TD> | |
679 | + <TD WIDTH=165> | |
680 | + <P ALIGN=LEFT>i</P> | |
681 | + </TD> | |
682 | + </TR> | |
683 | + <TR VALIGN=TOP> | |
684 | + <TD WIDTH=168> | |
685 | + <P ALIGN=LEFT>SDLK_j</P> | |
686 | + </TD> | |
687 | + <TD WIDTH=169> | |
688 | + <P ALIGN=LEFT>'j'</P> | |
689 | + </TD> | |
690 | + <TD WIDTH=165> | |
691 | + <P ALIGN=LEFT>j</P> | |
692 | + </TD> | |
693 | + </TR> | |
694 | + <TR VALIGN=TOP> | |
695 | + <TD WIDTH=168> | |
696 | + <P ALIGN=LEFT>SDLK_k</P> | |
697 | + </TD> | |
698 | + <TD WIDTH=169> | |
699 | + <P ALIGN=LEFT>'k'</P> | |
700 | + </TD> | |
701 | + <TD WIDTH=165> | |
702 | + <P ALIGN=LEFT>k</P> | |
703 | + </TD> | |
704 | + </TR> | |
705 | + <TR VALIGN=TOP> | |
706 | + <TD WIDTH=168> | |
707 | + <P ALIGN=LEFT>SDLK_l</P> | |
708 | + </TD> | |
709 | + <TD WIDTH=169> | |
710 | + <P ALIGN=LEFT>'l'</P> | |
711 | + </TD> | |
712 | + <TD WIDTH=165> | |
713 | + <P ALIGN=LEFT>l</P> | |
714 | + </TD> | |
715 | + </TR> | |
716 | + <TR VALIGN=TOP> | |
717 | + <TD WIDTH=168> | |
718 | + <P ALIGN=LEFT>SDLK_m</P> | |
719 | + </TD> | |
720 | + <TD WIDTH=169> | |
721 | + <P ALIGN=LEFT>'m'</P> | |
722 | + </TD> | |
723 | + <TD WIDTH=165> | |
724 | + <P ALIGN=LEFT>m</P> | |
725 | + </TD> | |
726 | + </TR> | |
727 | + <TR VALIGN=TOP> | |
728 | + <TD WIDTH=168> | |
729 | + <P ALIGN=LEFT>SDLK_n</P> | |
730 | + </TD> | |
731 | + <TD WIDTH=169> | |
732 | + <P ALIGN=LEFT>'n'</P> | |
733 | + </TD> | |
734 | + <TD WIDTH=165> | |
735 | + <P ALIGN=LEFT>n</P> | |
736 | + </TD> | |
737 | + </TR> | |
738 | + <TR VALIGN=TOP> | |
739 | + <TD WIDTH=168> | |
740 | + <P ALIGN=LEFT>SDLK_o</P> | |
741 | + </TD> | |
742 | + <TD WIDTH=169> | |
743 | + <P ALIGN=LEFT>'o'</P> | |
744 | + </TD> | |
745 | + <TD WIDTH=165> | |
746 | + <P ALIGN=LEFT>o</P> | |
747 | + </TD> | |
748 | + </TR> | |
749 | + <TR VALIGN=TOP> | |
750 | + <TD WIDTH=168> | |
751 | + <P ALIGN=LEFT>SDLK_p</P> | |
752 | + </TD> | |
753 | + <TD WIDTH=169> | |
754 | + <P ALIGN=LEFT>'p'</P> | |
755 | + </TD> | |
756 | + <TD WIDTH=165> | |
757 | + <P ALIGN=LEFT>p</P> | |
758 | + </TD> | |
759 | + </TR> | |
760 | + <TR VALIGN=TOP> | |
761 | + <TD WIDTH=168> | |
762 | + <P ALIGN=LEFT>SDLK_q</P> | |
763 | + </TD> | |
764 | + <TD WIDTH=169> | |
765 | + <P ALIGN=LEFT>'q'</P> | |
766 | + </TD> | |
767 | + <TD WIDTH=165> | |
768 | + <P ALIGN=LEFT>q</P> | |
769 | + </TD> | |
770 | + </TR> | |
771 | + <TR VALIGN=TOP> | |
772 | + <TD WIDTH=168> | |
773 | + <P ALIGN=LEFT>SDLK_r</P> | |
774 | + </TD> | |
775 | + <TD WIDTH=169> | |
776 | + <P ALIGN=LEFT>'r'</P> | |
777 | + </TD> | |
778 | + <TD WIDTH=165> | |
779 | + <P ALIGN=LEFT>r</P> | |
780 | + </TD> | |
781 | + </TR> | |
782 | + <TR VALIGN=TOP> | |
783 | + <TD WIDTH=168> | |
784 | + <P ALIGN=LEFT>SDLK_s</P> | |
785 | + </TD> | |
786 | + <TD WIDTH=169> | |
787 | + <P ALIGN=LEFT>'s'</P> | |
788 | + </TD> | |
789 | + <TD WIDTH=165> | |
790 | + <P ALIGN=LEFT>s</P> | |
791 | + </TD> | |
792 | + </TR> | |
793 | + <TR VALIGN=TOP> | |
794 | + <TD WIDTH=168> | |
795 | + <P ALIGN=LEFT>SDLK_t</P> | |
796 | + </TD> | |
797 | + <TD WIDTH=169> | |
798 | + <P ALIGN=LEFT>'t'</P> | |
799 | + </TD> | |
800 | + <TD WIDTH=165> | |
801 | + <P ALIGN=LEFT>t</P> | |
802 | + </TD> | |
803 | + </TR> | |
804 | + <TR VALIGN=TOP> | |
805 | + <TD WIDTH=168> | |
806 | + <P ALIGN=LEFT>SDLK_u</P> | |
807 | + </TD> | |
808 | + <TD WIDTH=169> | |
809 | + <P ALIGN=LEFT>'u'</P> | |
810 | + </TD> | |
811 | + <TD WIDTH=165> | |
812 | + <P ALIGN=LEFT>u</P> | |
813 | + </TD> | |
814 | + </TR> | |
815 | + <TR VALIGN=TOP> | |
816 | + <TD WIDTH=168> | |
817 | + <P ALIGN=LEFT>SDLK_v</P> | |
818 | + </TD> | |
819 | + <TD WIDTH=169> | |
820 | + <P ALIGN=LEFT>'v'</P> | |
821 | + </TD> | |
822 | + <TD WIDTH=165> | |
823 | + <P ALIGN=LEFT>v</P> | |
824 | + </TD> | |
825 | + </TR> | |
826 | + <TR VALIGN=TOP> | |
827 | + <TD WIDTH=168> | |
828 | + <P ALIGN=LEFT>SDLK_w</P> | |
829 | + </TD> | |
830 | + <TD WIDTH=169> | |
831 | + <P ALIGN=LEFT>'w'</P> | |
832 | + </TD> | |
833 | + <TD WIDTH=165> | |
834 | + <P ALIGN=LEFT>w</P> | |
835 | + </TD> | |
836 | + </TR> | |
837 | + <TR VALIGN=TOP> | |
838 | + <TD WIDTH=168> | |
839 | + <P ALIGN=LEFT>SDLK_x</P> | |
840 | + </TD> | |
841 | + <TD WIDTH=169> | |
842 | + <P ALIGN=LEFT>'x'</P> | |
843 | + </TD> | |
844 | + <TD WIDTH=165> | |
845 | + <P ALIGN=LEFT>x</P> | |
846 | + </TD> | |
847 | + </TR> | |
848 | + <TR VALIGN=TOP> | |
849 | + <TD WIDTH=168> | |
850 | + <P ALIGN=LEFT>SDLK_y</P> | |
851 | + </TD> | |
852 | + <TD WIDTH=169> | |
853 | + <P ALIGN=LEFT>'y'</P> | |
854 | + </TD> | |
855 | + <TD WIDTH=165> | |
856 | + <P ALIGN=LEFT>y</P> | |
857 | + </TD> | |
858 | + </TR> | |
859 | + <TR VALIGN=TOP> | |
860 | + <TD WIDTH=168> | |
861 | + <P ALIGN=LEFT>SDLK_z</P> | |
862 | + </TD> | |
863 | + <TD WIDTH=169> | |
864 | + <P ALIGN=LEFT>'z'</P> | |
865 | + </TD> | |
866 | + <TD WIDTH=165> | |
867 | + <P ALIGN=LEFT>z</P> | |
868 | + </TD> | |
869 | + </TR> | |
870 | + <TR VALIGN=TOP> | |
871 | + <TD WIDTH=168> | |
872 | + <P ALIGN=LEFT>SDLK_DELETE</P> | |
873 | + </TD> | |
874 | + <TD WIDTH=169> | |
875 | + <P ALIGN=LEFT> </P> | |
876 | + </TD> | |
877 | + <TD WIDTH=165> | |
878 | + <P ALIGN=LEFT>delete</P> | |
879 | + </TD> | |
880 | + </TR> | |
881 | + <TR VALIGN=TOP> | |
882 | + <TD WIDTH=168> | |
883 | + <P ALIGN=LEFT>SDLK_KP0</P> | |
884 | + </TD> | |
885 | + <TD WIDTH=169> | |
886 | + <P ALIGN=LEFT> </P> | |
887 | + </TD> | |
888 | + <TD WIDTH=165> | |
889 | + <P ALIGN=LEFT>keypad 0</P> | |
890 | + </TD> | |
891 | + </TR> | |
892 | + <TR VALIGN=TOP> | |
893 | + <TD WIDTH=168> | |
894 | + <P ALIGN=LEFT>SDLK_KP1</P> | |
895 | + </TD> | |
896 | + <TD WIDTH=169> | |
897 | + <P ALIGN=LEFT> </P> | |
898 | + </TD> | |
899 | + <TD WIDTH=165> | |
900 | + <P ALIGN=LEFT>keypad 1</P> | |
901 | + </TD> | |
902 | + </TR> | |
903 | + <TR VALIGN=TOP> | |
904 | + <TD WIDTH=168> | |
905 | + <P ALIGN=LEFT>SDLK_KP2</P> | |
906 | + </TD> | |
907 | + <TD WIDTH=169> | |
908 | + <P ALIGN=LEFT> </P> | |
909 | + </TD> | |
910 | + <TD WIDTH=165> | |
911 | + <P ALIGN=LEFT>keypad 2</P> | |
912 | + </TD> | |
913 | + </TR> | |
914 | + <TR VALIGN=TOP> | |
915 | + <TD WIDTH=168> | |
916 | + <P ALIGN=LEFT>SDLK_KP3</P> | |
917 | + </TD> | |
918 | + <TD WIDTH=169> | |
919 | + <P ALIGN=LEFT> </P> | |
920 | + </TD> | |
921 | + <TD WIDTH=165> | |
922 | + <P ALIGN=LEFT>keypad 3</P> | |
923 | + </TD> | |
924 | + </TR> | |
925 | + <TR VALIGN=TOP> | |
926 | + <TD WIDTH=168> | |
927 | + <P ALIGN=LEFT>SDLK_KP4</P> | |
928 | + </TD> | |
929 | + <TD WIDTH=169> | |
930 | + <P ALIGN=LEFT> </P> | |
931 | + </TD> | |
932 | + <TD WIDTH=165> | |
933 | + <P ALIGN=LEFT>keypad 4</P> | |
934 | + </TD> | |
935 | + </TR> | |
936 | + <TR VALIGN=TOP> | |
937 | + <TD WIDTH=168> | |
938 | + <P ALIGN=LEFT>SDLK_KP5</P> | |
939 | + </TD> | |
940 | + <TD WIDTH=169> | |
941 | + <P ALIGN=LEFT> </P> | |
942 | + </TD> | |
943 | + <TD WIDTH=165> | |
944 | + <P ALIGN=LEFT>keypad 5</P> | |
945 | + </TD> | |
946 | + </TR> | |
947 | + <TR VALIGN=TOP> | |
948 | + <TD WIDTH=168> | |
949 | + <P ALIGN=LEFT>SDLK_KP6</P> | |
950 | + </TD> | |
951 | + <TD WIDTH=169> | |
952 | + <P ALIGN=LEFT> </P> | |
953 | + </TD> | |
954 | + <TD WIDTH=165> | |
955 | + <P ALIGN=LEFT>keypad 6</P> | |
956 | + </TD> | |
957 | + </TR> | |
958 | + <TR VALIGN=TOP> | |
959 | + <TD WIDTH=168> | |
960 | + <P ALIGN=LEFT>SDLK_KP7</P> | |
961 | + </TD> | |
962 | + <TD WIDTH=169> | |
963 | + <P ALIGN=LEFT> </P> | |
964 | + </TD> | |
965 | + <TD WIDTH=165> | |
966 | + <P ALIGN=LEFT>keypad 7</P> | |
967 | + </TD> | |
968 | + </TR> | |
969 | + <TR VALIGN=TOP> | |
970 | + <TD WIDTH=168> | |
971 | + <P ALIGN=LEFT>SDLK_KP8</P> | |
972 | + </TD> | |
973 | + <TD WIDTH=169> | |
974 | + <P ALIGN=LEFT> </P> | |
975 | + </TD> | |
976 | + <TD WIDTH=165> | |
977 | + <P ALIGN=LEFT>keypad 8</P> | |
978 | + </TD> | |
979 | + </TR> | |
980 | + <TR VALIGN=TOP> | |
981 | + <TD WIDTH=168> | |
982 | + <P ALIGN=LEFT>SDLK_KP9</P> | |
983 | + </TD> | |
984 | + <TD WIDTH=169> | |
985 | + <P ALIGN=LEFT> </P> | |
986 | + </TD> | |
987 | + <TD WIDTH=165> | |
988 | + <P ALIGN=LEFT>keypad 9</P> | |
989 | + </TD> | |
990 | + </TR> | |
991 | + <TR VALIGN=TOP> | |
992 | + <TD WIDTH=168> | |
993 | + <P ALIGN=LEFT>SDLK_KP_PERIOD</P> | |
994 | + </TD> | |
995 | + <TD WIDTH=169> | |
996 | + <P ALIGN=LEFT>'.'</P> | |
997 | + </TD> | |
998 | + <TD WIDTH=165> | |
999 | + <P ALIGN=LEFT>keypad period</P> | |
1000 | + </TD> | |
1001 | + </TR> | |
1002 | + <TR VALIGN=TOP> | |
1003 | + <TD WIDTH=168> | |
1004 | + <P ALIGN=LEFT>SDLK_KP_DIVIDE</P> | |
1005 | + </TD> | |
1006 | + <TD WIDTH=169> | |
1007 | + <P ALIGN=LEFT>'/'</P> | |
1008 | + </TD> | |
1009 | + <TD WIDTH=165> | |
1010 | + <P ALIGN=LEFT>keypad divide</P> | |
1011 | + </TD> | |
1012 | + </TR> | |
1013 | + <TR VALIGN=TOP> | |
1014 | + <TD WIDTH=168> | |
1015 | + <P ALIGN=LEFT>SDLK_KP_MULTIPLY</P> | |
1016 | + </TD> | |
1017 | + <TD WIDTH=169> | |
1018 | + <P ALIGN=LEFT>'*'</P> | |
1019 | + </TD> | |
1020 | + <TD WIDTH=165> | |
1021 | + <P ALIGN=LEFT>keypad multiply</P> | |
1022 | + </TD> | |
1023 | + </TR> | |
1024 | + <TR VALIGN=TOP> | |
1025 | + <TD WIDTH=168> | |
1026 | + <P ALIGN=LEFT>SDLK_KP_MINUS</P> | |
1027 | + </TD> | |
1028 | + <TD WIDTH=169> | |
1029 | + <P ALIGN=LEFT>'-'</P> | |
1030 | + </TD> | |
1031 | + <TD WIDTH=165> | |
1032 | + <P ALIGN=LEFT>keypad minus</P> | |
1033 | + </TD> | |
1034 | + </TR> | |
1035 | + <TR VALIGN=TOP> | |
1036 | + <TD WIDTH=168> | |
1037 | + <P ALIGN=LEFT>SDLK_KP_PLUS</P> | |
1038 | + </TD> | |
1039 | + <TD WIDTH=169> | |
1040 | + <P ALIGN=LEFT>'+'</P> | |
1041 | + </TD> | |
1042 | + <TD WIDTH=165> | |
1043 | + <P ALIGN=LEFT>keypad plus</P> | |
1044 | + </TD> | |
1045 | + </TR> | |
1046 | + <TR VALIGN=TOP> | |
1047 | + <TD WIDTH=168> | |
1048 | + <P ALIGN=LEFT>SDLK_KP_ENTER</P> | |
1049 | + </TD> | |
1050 | + <TD WIDTH=169> | |
1051 | + <P ALIGN=LEFT>'\r'</P> | |
1052 | + </TD> | |
1053 | + <TD WIDTH=165> | |
1054 | + <P ALIGN=LEFT>keypad enter</P> | |
1055 | + </TD> | |
1056 | + </TR> | |
1057 | + <TR VALIGN=TOP> | |
1058 | + <TD WIDTH=168> | |
1059 | + <P ALIGN=LEFT>SDLK_KP_EQUALS</P> | |
1060 | + </TD> | |
1061 | + <TD WIDTH=169> | |
1062 | + <P ALIGN=LEFT>'='</P> | |
1063 | + </TD> | |
1064 | + <TD WIDTH=165> | |
1065 | + <P ALIGN=LEFT>keypad equals</P> | |
1066 | + </TD> | |
1067 | + </TR> | |
1068 | + <TR VALIGN=TOP> | |
1069 | + <TD WIDTH=168> | |
1070 | + <P ALIGN=LEFT>SDLK_UP</P> | |
1071 | + </TD> | |
1072 | + <TD WIDTH=169> | |
1073 | + <P ALIGN=LEFT> </P> | |
1074 | + </TD> | |
1075 | + <TD WIDTH=165> | |
1076 | + <P ALIGN=LEFT>up arrow</P> | |
1077 | + </TD> | |
1078 | + </TR> | |
1079 | + <TR VALIGN=TOP> | |
1080 | + <TD WIDTH=168> | |
1081 | + <P ALIGN=LEFT>SDLK_DOWN</P> | |
1082 | + </TD> | |
1083 | + <TD WIDTH=169> | |
1084 | + <P ALIGN=LEFT> </P> | |
1085 | + </TD> | |
1086 | + <TD WIDTH=165> | |
1087 | + <P ALIGN=LEFT>down arrow</P> | |
1088 | + </TD> | |
1089 | + </TR> | |
1090 | + <TR VALIGN=TOP> | |
1091 | + <TD WIDTH=168> | |
1092 | + <P ALIGN=LEFT>SDLK_RIGHT</P> | |
1093 | + </TD> | |
1094 | + <TD WIDTH=169> | |
1095 | + <P ALIGN=LEFT> </P> | |
1096 | + </TD> | |
1097 | + <TD WIDTH=165> | |
1098 | + <P ALIGN=LEFT>right arrow</P> | |
1099 | + </TD> | |
1100 | + </TR> | |
1101 | + <TR VALIGN=TOP> | |
1102 | + <TD WIDTH=168> | |
1103 | + <P ALIGN=LEFT>SDLK_LEFT</P> | |
1104 | + </TD> | |
1105 | + <TD WIDTH=169> | |
1106 | + <P ALIGN=LEFT> </P> | |
1107 | + </TD> | |
1108 | + <TD WIDTH=165> | |
1109 | + <P ALIGN=LEFT>left arrow</P> | |
1110 | + </TD> | |
1111 | + </TR> | |
1112 | + <TR VALIGN=TOP> | |
1113 | + <TD WIDTH=168> | |
1114 | + <P ALIGN=LEFT>SDLK_INSERT</P> | |
1115 | + </TD> | |
1116 | + <TD WIDTH=169> | |
1117 | + <P ALIGN=LEFT> </P> | |
1118 | + </TD> | |
1119 | + <TD WIDTH=165> | |
1120 | + <P ALIGN=LEFT>insert</P> | |
1121 | + </TD> | |
1122 | + </TR> | |
1123 | + <TR VALIGN=TOP> | |
1124 | + <TD WIDTH=168> | |
1125 | + <P ALIGN=LEFT>SDLK_HOME</P> | |
1126 | + </TD> | |
1127 | + <TD WIDTH=169> | |
1128 | + <P ALIGN=LEFT> </P> | |
1129 | + </TD> | |
1130 | + <TD WIDTH=165> | |
1131 | + <P ALIGN=LEFT>home</P> | |
1132 | + </TD> | |
1133 | + </TR> | |
1134 | + <TR VALIGN=TOP> | |
1135 | + <TD WIDTH=168> | |
1136 | + <P ALIGN=LEFT>SDLK_END</P> | |
1137 | + </TD> | |
1138 | + <TD WIDTH=169> | |
1139 | + <P ALIGN=LEFT> </P> | |
1140 | + </TD> | |
1141 | + <TD WIDTH=165> | |
1142 | + <P ALIGN=LEFT>end</P> | |
1143 | + </TD> | |
1144 | + </TR> | |
1145 | + <TR VALIGN=TOP> | |
1146 | + <TD WIDTH=168> | |
1147 | + <P ALIGN=LEFT>SDLK_PAGEUP</P> | |
1148 | + </TD> | |
1149 | + <TD WIDTH=169> | |
1150 | + <P ALIGN=LEFT> </P> | |
1151 | + </TD> | |
1152 | + <TD WIDTH=165> | |
1153 | + <P ALIGN=LEFT>page up</P> | |
1154 | + </TD> | |
1155 | + </TR> | |
1156 | + <TR VALIGN=TOP> | |
1157 | + <TD WIDTH=168> | |
1158 | + <P ALIGN=LEFT>SDLK_PAGEDOWN</P> | |
1159 | + </TD> | |
1160 | + <TD WIDTH=169> | |
1161 | + <P ALIGN=LEFT> </P> | |
1162 | + </TD> | |
1163 | + <TD WIDTH=165> | |
1164 | + <P ALIGN=LEFT>page down</P> | |
1165 | + </TD> | |
1166 | + </TR> | |
1167 | + <TR VALIGN=TOP> | |
1168 | + <TD WIDTH=168> | |
1169 | + <P ALIGN=LEFT>SDLK_F1</P> | |
1170 | + </TD> | |
1171 | + <TD WIDTH=169> | |
1172 | + <P ALIGN=LEFT> </P> | |
1173 | + </TD> | |
1174 | + <TD WIDTH=165> | |
1175 | + <P ALIGN=LEFT>F1</P> | |
1176 | + </TD> | |
1177 | + </TR> | |
1178 | + <TR VALIGN=TOP> | |
1179 | + <TD WIDTH=168> | |
1180 | + <P ALIGN=LEFT>SDLK_F2</P> | |
1181 | + </TD> | |
1182 | + <TD WIDTH=169> | |
1183 | + <P ALIGN=LEFT> </P> | |
1184 | + </TD> | |
1185 | + <TD WIDTH=165> | |
1186 | + <P ALIGN=LEFT>F2</P> | |
1187 | + </TD> | |
1188 | + </TR> | |
1189 | + <TR VALIGN=TOP> | |
1190 | + <TD WIDTH=168> | |
1191 | + <P ALIGN=LEFT>SDLK_F3</P> | |
1192 | + </TD> | |
1193 | + <TD WIDTH=169> | |
1194 | + <P ALIGN=LEFT> </P> | |
1195 | + </TD> | |
1196 | + <TD WIDTH=165> | |
1197 | + <P ALIGN=LEFT>F3</P> | |
1198 | + </TD> | |
1199 | + </TR> | |
1200 | + <TR VALIGN=TOP> | |
1201 | + <TD WIDTH=168> | |
1202 | + <P ALIGN=LEFT>SDLK_F4</P> | |
1203 | + </TD> | |
1204 | + <TD WIDTH=169> | |
1205 | + <P ALIGN=LEFT> </P> | |
1206 | + </TD> | |
1207 | + <TD WIDTH=165> | |
1208 | + <P ALIGN=LEFT>F4</P> | |
1209 | + </TD> | |
1210 | + </TR> | |
1211 | + <TR VALIGN=TOP> | |
1212 | + <TD WIDTH=168> | |
1213 | + <P ALIGN=LEFT>SDLK_F5</P> | |
1214 | + </TD> | |
1215 | + <TD WIDTH=169> | |
1216 | + <P ALIGN=LEFT> </P> | |
1217 | + </TD> | |
1218 | + <TD WIDTH=165> | |
1219 | + <P ALIGN=LEFT>F5</P> | |
1220 | + </TD> | |
1221 | + </TR> | |
1222 | + <TR VALIGN=TOP> | |
1223 | + <TD WIDTH=168> | |
1224 | + <P ALIGN=LEFT>SDLK_F6</P> | |
1225 | + </TD> | |
1226 | + <TD WIDTH=169> | |
1227 | + <P ALIGN=LEFT> </P> | |
1228 | + </TD> | |
1229 | + <TD WIDTH=165> | |
1230 | + <P ALIGN=LEFT>F6</P> | |
1231 | + </TD> | |
1232 | + </TR> | |
1233 | + <TR VALIGN=TOP> | |
1234 | + <TD WIDTH=168> | |
1235 | + <P ALIGN=LEFT>SDLK_F7</P> | |
1236 | + </TD> | |
1237 | + <TD WIDTH=169> | |
1238 | + <P ALIGN=LEFT> </P> | |
1239 | + </TD> | |
1240 | + <TD WIDTH=165> | |
1241 | + <P ALIGN=LEFT>F7</P> | |
1242 | + </TD> | |
1243 | + </TR> | |
1244 | + <TR VALIGN=TOP> | |
1245 | + <TD WIDTH=168> | |
1246 | + <P ALIGN=LEFT>SDLK_F8</P> | |
1247 | + </TD> | |
1248 | + <TD WIDTH=169> | |
1249 | + <P ALIGN=LEFT> </P> | |
1250 | + </TD> | |
1251 | + <TD WIDTH=165> | |
1252 | + <P ALIGN=LEFT>F8</P> | |
1253 | + </TD> | |
1254 | + </TR> | |
1255 | + <TR VALIGN=TOP> | |
1256 | + <TD WIDTH=168> | |
1257 | + <P ALIGN=LEFT>SDLK_F9</P> | |
1258 | + </TD> | |
1259 | + <TD WIDTH=169> | |
1260 | + <P ALIGN=LEFT> </P> | |
1261 | + </TD> | |
1262 | + <TD WIDTH=165> | |
1263 | + <P ALIGN=LEFT>F9</P> | |
1264 | + </TD> | |
1265 | + </TR> | |
1266 | + <TR VALIGN=TOP> | |
1267 | + <TD WIDTH=168> | |
1268 | + <P ALIGN=LEFT>SDLK_F10</P> | |
1269 | + </TD> | |
1270 | + <TD WIDTH=169> | |
1271 | + <P ALIGN=LEFT> </P> | |
1272 | + </TD> | |
1273 | + <TD WIDTH=165> | |
1274 | + <P ALIGN=LEFT>F10</P> | |
1275 | + </TD> | |
1276 | + </TR> | |
1277 | + <TR VALIGN=TOP> | |
1278 | + <TD WIDTH=168> | |
1279 | + <P ALIGN=LEFT>SDLK_F11</P> | |
1280 | + </TD> | |
1281 | + <TD WIDTH=169> | |
1282 | + <P ALIGN=LEFT> </P> | |
1283 | + </TD> | |
1284 | + <TD WIDTH=165> | |
1285 | + <P ALIGN=LEFT>F11</P> | |
1286 | + </TD> | |
1287 | + </TR> | |
1288 | + <TR VALIGN=TOP> | |
1289 | + <TD WIDTH=168> | |
1290 | + <P ALIGN=LEFT>SDLK_F12</P> | |
1291 | + </TD> | |
1292 | + <TD WIDTH=169> | |
1293 | + <P ALIGN=LEFT> </P> | |
1294 | + </TD> | |
1295 | + <TD WIDTH=165> | |
1296 | + <P ALIGN=LEFT>F12</P> | |
1297 | + </TD> | |
1298 | + </TR> | |
1299 | + <TR VALIGN=TOP> | |
1300 | + <TD WIDTH=168> | |
1301 | + <P ALIGN=LEFT>SDLK_F13</P> | |
1302 | + </TD> | |
1303 | + <TD WIDTH=169> | |
1304 | + <P ALIGN=LEFT> </P> | |
1305 | + </TD> | |
1306 | + <TD WIDTH=165> | |
1307 | + <P ALIGN=LEFT>F13</P> | |
1308 | + </TD> | |
1309 | + </TR> | |
1310 | + <TR VALIGN=TOP> | |
1311 | + <TD WIDTH=168> | |
1312 | + <P ALIGN=LEFT>SDLK_F14</P> | |
1313 | + </TD> | |
1314 | + <TD WIDTH=169> | |
1315 | + <P ALIGN=LEFT> </P> | |
1316 | + </TD> | |
1317 | + <TD WIDTH=165> | |
1318 | + <P ALIGN=LEFT>F14</P> | |
1319 | + </TD> | |
1320 | + </TR> | |
1321 | + <TR VALIGN=TOP> | |
1322 | + <TD WIDTH=168> | |
1323 | + <P ALIGN=LEFT>SDLK_F15</P> | |
1324 | + </TD> | |
1325 | + <TD WIDTH=169> | |
1326 | + <P ALIGN=LEFT> </P> | |
1327 | + </TD> | |
1328 | + <TD WIDTH=165> | |
1329 | + <P ALIGN=LEFT>F15</P> | |
1330 | + </TD> | |
1331 | + </TR> | |
1332 | + <TR VALIGN=TOP> | |
1333 | + <TD WIDTH=168> | |
1334 | + <P ALIGN=LEFT>SDLK_NUMLOCK</P> | |
1335 | + </TD> | |
1336 | + <TD WIDTH=169> | |
1337 | + <P ALIGN=LEFT> </P> | |
1338 | + </TD> | |
1339 | + <TD WIDTH=165> | |
1340 | + <P ALIGN=LEFT>numlock</P> | |
1341 | + </TD> | |
1342 | + </TR> | |
1343 | + <TR VALIGN=TOP> | |
1344 | + <TD WIDTH=168> | |
1345 | + <P ALIGN=LEFT>SDLK_CAPSLOCK</P> | |
1346 | + </TD> | |
1347 | + <TD WIDTH=169> | |
1348 | + <P ALIGN=LEFT> </P> | |
1349 | + </TD> | |
1350 | + <TD WIDTH=165> | |
1351 | + <P ALIGN=LEFT>capslock</P> | |
1352 | + </TD> | |
1353 | + </TR> | |
1354 | + <TR VALIGN=TOP> | |
1355 | + <TD WIDTH=168> | |
1356 | + <P ALIGN=LEFT>SDLK_SCROLLOCK</P> | |
1357 | + </TD> | |
1358 | + <TD WIDTH=169> | |
1359 | + <P ALIGN=LEFT> </P> | |
1360 | + </TD> | |
1361 | + <TD WIDTH=165> | |
1362 | + <P ALIGN=LEFT>scrollock</P> | |
1363 | + </TD> | |
1364 | + </TR> | |
1365 | + <TR VALIGN=TOP> | |
1366 | + <TD WIDTH=168> | |
1367 | + <P ALIGN=LEFT>SDLK_RSHIFT</P> | |
1368 | + </TD> | |
1369 | + <TD WIDTH=169> | |
1370 | + <P ALIGN=LEFT> </P> | |
1371 | + </TD> | |
1372 | + <TD WIDTH=165> | |
1373 | + <P ALIGN=LEFT>right shift</P> | |
1374 | + </TD> | |
1375 | + </TR> | |
1376 | + <TR VALIGN=TOP> | |
1377 | + <TD WIDTH=168> | |
1378 | + <P ALIGN=LEFT>SDLK_LSHIFT</P> | |
1379 | + </TD> | |
1380 | + <TD WIDTH=169> | |
1381 | + <P ALIGN=LEFT> </P> | |
1382 | + </TD> | |
1383 | + <TD WIDTH=165> | |
1384 | + <P ALIGN=LEFT>left shift</P> | |
1385 | + </TD> | |
1386 | + </TR> | |
1387 | + <TR VALIGN=TOP> | |
1388 | + <TD WIDTH=168> | |
1389 | + <P ALIGN=LEFT>SDLK_RCTRL</P> | |
1390 | + </TD> | |
1391 | + <TD WIDTH=169> | |
1392 | + <P ALIGN=LEFT> </P> | |
1393 | + </TD> | |
1394 | + <TD WIDTH=165> | |
1395 | + <P ALIGN=LEFT>right ctrl</P> | |
1396 | + </TD> | |
1397 | + </TR> | |
1398 | + <TR VALIGN=TOP> | |
1399 | + <TD WIDTH=168> | |
1400 | + <P ALIGN=LEFT>SDLK_LCTRL</P> | |
1401 | + </TD> | |
1402 | + <TD WIDTH=169> | |
1403 | + <P ALIGN=LEFT> </P> | |
1404 | + </TD> | |
1405 | + <TD WIDTH=165> | |
1406 | + <P ALIGN=LEFT>left ctrl</P> | |
1407 | + </TD> | |
1408 | + </TR> | |
1409 | + <TR VALIGN=TOP> | |
1410 | + <TD WIDTH=168> | |
1411 | + <P ALIGN=LEFT>SDLK_RALT</P> | |
1412 | + </TD> | |
1413 | + <TD WIDTH=169> | |
1414 | + <P ALIGN=LEFT> </P> | |
1415 | + </TD> | |
1416 | + <TD WIDTH=165> | |
1417 | + <P ALIGN=LEFT>right alt</P> | |
1418 | + </TD> | |
1419 | + </TR> | |
1420 | + <TR VALIGN=TOP> | |
1421 | + <TD WIDTH=168> | |
1422 | + <P ALIGN=LEFT>SDLK_LALT</P> | |
1423 | + </TD> | |
1424 | + <TD WIDTH=169> | |
1425 | + <P ALIGN=LEFT> </P> | |
1426 | + </TD> | |
1427 | + <TD WIDTH=165> | |
1428 | + <P ALIGN=LEFT>left alt</P> | |
1429 | + </TD> | |
1430 | + </TR> | |
1431 | + <TR VALIGN=TOP> | |
1432 | + <TD WIDTH=168> | |
1433 | + <P ALIGN=LEFT>SDLK_RMETA</P> | |
1434 | + </TD> | |
1435 | + <TD WIDTH=169> | |
1436 | + <P ALIGN=LEFT> </P> | |
1437 | + </TD> | |
1438 | + <TD WIDTH=165> | |
1439 | + <P ALIGN=LEFT>right meta</P> | |
1440 | + </TD> | |
1441 | + </TR> | |
1442 | + <TR VALIGN=TOP> | |
1443 | + <TD WIDTH=168> | |
1444 | + <P ALIGN=LEFT>SDLK_LMETA</P> | |
1445 | + </TD> | |
1446 | + <TD WIDTH=169> | |
1447 | + <P ALIGN=LEFT> </P> | |
1448 | + </TD> | |
1449 | + <TD WIDTH=165> | |
1450 | + <P ALIGN=LEFT>left meta</P> | |
1451 | + </TD> | |
1452 | + </TR> | |
1453 | + <TR VALIGN=TOP> | |
1454 | + <TD WIDTH=168> | |
1455 | + <P ALIGN=LEFT>SDLK_LSUPER</P> | |
1456 | + </TD> | |
1457 | + <TD WIDTH=169> | |
1458 | + <P ALIGN=LEFT> </P> | |
1459 | + </TD> | |
1460 | + <TD WIDTH=165> | |
1461 | + <P ALIGN=LEFT>left windows key</P> | |
1462 | + </TD> | |
1463 | + </TR> | |
1464 | + <TR VALIGN=TOP> | |
1465 | + <TD WIDTH=168> | |
1466 | + <P ALIGN=LEFT>SDLK_RSUPER</P> | |
1467 | + </TD> | |
1468 | + <TD WIDTH=169> | |
1469 | + <P ALIGN=LEFT> </P> | |
1470 | + </TD> | |
1471 | + <TD WIDTH=165> | |
1472 | + <P ALIGN=LEFT>right windows key</P> | |
1473 | + </TD> | |
1474 | + </TR> | |
1475 | + <TR VALIGN=TOP> | |
1476 | + <TD WIDTH=168> | |
1477 | + <P ALIGN=LEFT>SDLK_MODE</P> | |
1478 | + </TD> | |
1479 | + <TD WIDTH=169> | |
1480 | + <P ALIGN=LEFT> </P> | |
1481 | + </TD> | |
1482 | + <TD WIDTH=165> | |
1483 | + <P ALIGN=LEFT>mode shift</P> | |
1484 | + </TD> | |
1485 | + </TR> | |
1486 | + <TR VALIGN=TOP> | |
1487 | + <TD WIDTH=168> | |
1488 | + <P ALIGN=LEFT>SDLK_HELP</P> | |
1489 | + </TD> | |
1490 | + <TD WIDTH=169> | |
1491 | + <P ALIGN=LEFT> </P> | |
1492 | + </TD> | |
1493 | + <TD WIDTH=165> | |
1494 | + <P ALIGN=LEFT>help</P> | |
1495 | + </TD> | |
1496 | + </TR> | |
1497 | + <TR VALIGN=TOP> | |
1498 | + <TD WIDTH=168> | |
1499 | + <P ALIGN=LEFT>SDLK_PRINT</P> | |
1500 | + </TD> | |
1501 | + <TD WIDTH=169> | |
1502 | + <P ALIGN=LEFT> </P> | |
1503 | + </TD> | |
1504 | + <TD WIDTH=165> | |
1505 | + <P ALIGN=LEFT>print-screen</P> | |
1506 | + </TD> | |
1507 | + </TR> | |
1508 | + <TR VALIGN=TOP> | |
1509 | + <TD WIDTH=168> | |
1510 | + <P ALIGN=LEFT>SDLK_SYSREQ</P> | |
1511 | + </TD> | |
1512 | + <TD WIDTH=169> | |
1513 | + <P ALIGN=LEFT> </P> | |
1514 | + </TD> | |
1515 | + <TD WIDTH=165> | |
1516 | + <P ALIGN=LEFT>SysRq</P> | |
1517 | + </TD> | |
1518 | + </TR> | |
1519 | + <TR VALIGN=TOP> | |
1520 | + <TD WIDTH=168> | |
1521 | + <P ALIGN=LEFT>SDLK_BREAK</P> | |
1522 | + </TD> | |
1523 | + <TD WIDTH=169> | |
1524 | + <P ALIGN=LEFT> </P> | |
1525 | + </TD> | |
1526 | + <TD WIDTH=165> | |
1527 | + <P ALIGN=LEFT>break</P> | |
1528 | + </TD> | |
1529 | + </TR> | |
1530 | + <TR VALIGN=TOP> | |
1531 | + <TD WIDTH=168> | |
1532 | + <P ALIGN=LEFT>SDLK_MENU</P> | |
1533 | + </TD> | |
1534 | + <TD WIDTH=169> | |
1535 | + <P ALIGN=LEFT> </P> | |
1536 | + </TD> | |
1537 | + <TD WIDTH=165> | |
1538 | + <P ALIGN=LEFT>menu</P> | |
1539 | + </TD> | |
1540 | + </TR> | |
1541 | + <TR VALIGN=TOP> | |
1542 | + <TD WIDTH=168> | |
1543 | + <P ALIGN=LEFT>SDLK_POWER</P> | |
1544 | + </TD> | |
1545 | + <TD WIDTH=169> | |
1546 | + <P ALIGN=LEFT> </P> | |
1547 | + </TD> | |
1548 | + <TD WIDTH=165> | |
1549 | + <P ALIGN=LEFT>power</P> | |
1550 | + </TD> | |
1551 | + </TR> | |
1552 | + <TR VALIGN=TOP> | |
1553 | + <TD WIDTH=168> | |
1554 | + <P ALIGN=LEFT>SDLK_EURO</P> | |
1555 | + </TD> | |
1556 | + <TD WIDTH=169> | |
1557 | + <P ALIGN=LEFT> </P> | |
1558 | + </TD> | |
1559 | + <TD WIDTH=165> | |
1560 | + <P ALIGN=LEFT>euro</P> | |
1561 | + </TD> | |
1562 | + </TR> | |
1563 | + </TBODY> | |
1564 | +</TABLE> | |
1565 | +<P><BR><BR> | |
1566 | +</P> | |
1567 | +</BODY> | |
1568 | +</HTML> | |
0 | 1569 | \ No newline at end of file | ... | ... |
primlib.c
... | ... | @@ -144,8 +144,8 @@ int gfx_init() { |
144 | 144 | SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, |
145 | 145 | SCREEN_HEIGHT, SDL_WINDOW_SHOWN); |
146 | 146 | if (window == NULL) { |
147 | - printf("Window could not be created! SDL Error: %s\n", SDL_GetError()); | |
148 | - exit(3); | |
147 | + fprintf(stderr, "Window could not be created! SDL Error: %s\n", SDL_GetError()); | |
148 | + return 2; | |
149 | 149 | } else { |
150 | 150 | // Create renderer for window |
151 | 151 | renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); |
... | ... | @@ -155,8 +155,8 @@ int gfx_init() { |
155 | 155 | } |
156 | 156 | |
157 | 157 | if (renderer == NULL) { |
158 | - printf("Renderer could not be created! SDL Error: %s\n", SDL_GetError()); | |
159 | - exit(3); | |
158 | + fprintf(stderr,"Renderer could not be created! SDL Error: %s\n", SDL_GetError()); | |
159 | + return 3; | |
160 | 160 | } |
161 | 161 | } |
162 | 162 | ... | ... |