source: abuse/trunk/src/imlib/keys.hpp @ 57

Last change on this file since 57 was 57, checked in by Sam Hocevar, 14 years ago
  • Move each header to the same directory as its corresponding source, to get a better idea of which files are likely to export symbols.
File size: 1.3 KB
RevLine 
[56]1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *
5 *  This software was released into the Public Domain. As with most public
6 *  domain software, no warranty is made or implied by Crack dot Com or
7 *  Jonathan Clark.
8 */
9
[2]10#ifndef __KEYS_HPP_
11#define __KEYS_HPP_
12
13#define JK_BACKSPACE 8
14#define JK_TAB      9
15#define JK_ENTER    13
16#define JK_ESC      27
17#define JK_SPACE    32
18
19#define JK_UP       256
20#define JK_DOWN     257
21#define JK_LEFT     258
22#define JK_RIGHT    259
23#define JK_CTRL_L   260
24#define JK_CTRL_R   261
25#define JK_ALT_L    262
26#define JK_ALT_R    263
27#define JK_SHIFT_L  264
28#define JK_SHIFT_R  265
29#define JK_CAPS     266
30#define JK_NUM_LOCK 267
31#define JK_HOME     268
32#define JK_END      269
33#define JK_DEL      270
34#define JK_F1       271
35#define JK_F2       272
36#define JK_F3       273
37#define JK_F4       274
38#define JK_F5       275
39#define JK_F6       276
40#define JK_F7       277
41#define JK_F8       278
42#define JK_F9       279
43#define JK_F10      280
44#define JK_INSERT   281
45#define JK_PAGEUP   282
46#define JK_PAGEDOWN 283
47#define JK_COMMAND  284
48#define JK_MAX_KEY  284
49
50// returns a ASCII string describing a key, i.e. "Up Arrow"
51void key_name(int key, char *buffer);
52
53// returns a value describing a key name
[39]54int key_value(char const *buffer);
[2]55
56#endif
57
58
59
60
61
62
63
Note: See TracBrowser for help on using the repository browser.