source: abuse/trunk/src/imlib/include/keys.hpp @ 2

Last change on this file since 2 was 2, checked in by Sam Hocevar, 14 years ago
  • imported original 0.7.0 tarball
File size: 1.0 KB
Line 
1#ifndef __KEYS_HPP_
2#define __KEYS_HPP_
3
4#define JK_BACKSPACE 8
5#define JK_TAB      9
6#define JK_ENTER    13
7#define JK_ESC      27
8#define JK_SPACE    32
9
10#define JK_UP       256
11#define JK_DOWN     257
12#define JK_LEFT     258
13#define JK_RIGHT    259
14#define JK_CTRL_L   260
15#define JK_CTRL_R   261
16#define JK_ALT_L    262
17#define JK_ALT_R    263
18#define JK_SHIFT_L  264
19#define JK_SHIFT_R  265
20#define JK_CAPS     266
21#define JK_NUM_LOCK 267
22#define JK_HOME     268
23#define JK_END      269
24#define JK_DEL      270
25#define JK_F1       271
26#define JK_F2       272
27#define JK_F3       273
28#define JK_F4       274
29#define JK_F5       275
30#define JK_F6       276
31#define JK_F7       277
32#define JK_F8       278
33#define JK_F9       279
34#define JK_F10      280
35#define JK_INSERT   281
36#define JK_PAGEUP   282
37#define JK_PAGEDOWN 283
38#define JK_COMMAND  284
39#define JK_MAX_KEY  284
40
41// returns a ASCII string describing a key, i.e. "Up Arrow"
42void key_name(int key, char *buffer);
43
44// returns a value describing a key name
45int key_value( char *buffer );
46
47#endif
48
49
50
51
52
53
54
Note: See TracBrowser for help on using the repository browser.