1 /*
2  *  Abuse - dark 2D side-scrolling platform game
3  *  Copyright (c) 1995 Crack dot Com
4  *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5  *
6  *  This software was released into the Public Domain. As with most public
7  *  domain software, no warranty is made or implied by Crack dot Com, by
8  *  Jonathan Clark, or by Sam Hocevar.
9  */
10 
11 #ifndef __KEYS_HPP_
12 #define __KEYS_HPP_
13 
14 #define JK_BACKSPACE 8
15 #define JK_TAB      9
16 #define JK_ENTER    13
17 #define JK_ESC      27
18 #define JK_SPACE    32
19 
20 #define JK_UP       256
21 #define JK_DOWN     257
22 #define JK_LEFT     258
23 #define JK_RIGHT    259
24 #define JK_CTRL_L   260
25 #define JK_CTRL_R   261
26 #define JK_ALT_L    262
27 #define JK_ALT_R    263
28 #define JK_SHIFT_L  264
29 #define JK_SHIFT_R  265
30 #define JK_CAPS     266
31 #define JK_NUM_LOCK 267
32 #define JK_HOME     268
33 #define JK_END      269
34 #define JK_DEL      270
35 #define JK_F1       271
36 #define JK_F2       272
37 #define JK_F3       273
38 #define JK_F4       274
39 #define JK_F5       275
40 #define JK_F6       276
41 #define JK_F7       277
42 #define JK_F8       278
43 #define JK_F9       279
44 #define JK_F10      280
45 #define JK_INSERT   281
46 #define JK_PAGEUP   282
47 #define JK_PAGEDOWN 283
48 #define JK_COMMAND  284
49 #define JK_MAX_KEY  284
50 
51 // returns a ASCII string describing a key, i.e. "Up Arrow"
52 void key_name(int key, char *buffer);
53 
54 // returns a value describing a key name
55 int key_value(char const *buffer);
56 
57 #endif
58 
59 
60 
61 
62 
63 
64 
65