Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (50 sloc) 1.019 kb
62617ff Configurable keymapping
ec429 authored
1 #pragma once
2
3 typedef struct
4 {
5 const char *name;
6 char *mod;
7 }
8 keymod;
9
10 #define KEY_BS 0
11 #define KEY_UP 1
12 #define KEY_DOWN 2
13 #define KEY_LEFT 3
14 #define KEY_RIGHT 4
15 #define KEY_HOME 5
16 #define KEY_END 6
17 #define KEY_DELETE 7
18 #define KEY_PGUP 8
19 #define KEY_PGDN 9
20 #define KEY_CUP 10
21 #define KEY_AUP 11
22 #define KEY_CDOWN 12
23 #define KEY_ADOWN 13
8a8c47f Fix some more problems associated with keymapping
ec429 authored
24 #define KEY_SLEFT 14
25 #define KEY_CLEFT 15
26 #define KEY_ALEFT 16
27 #define KEY_SRIGHT 17
28 #define KEY_CRIGHT 18
29 #define KEY_ARIGHT 19
30 #define KEY_SHOME 20
31 #define KEY_CHOME 21
32 #define KEY_AHOME 22
33 #define KEY_SEND 23
34 #define KEY_CEND 24
35 #define KEY_AEND 25
36 #define KEY_CPGUP 26
37 #define KEY_APGUP 27
38 #define KEY_CPGDN 28
39 #define KEY_APGDN 29
40 #define KEY_F1 30
41 #define KEY_F2 31
42 #define KEY_F3 32
43 #define KEY_F4 33
44 #define KEY_F5 34
45 #define KEY_F6 35
46 #define KEY_F7 36
47 #define KEY_F8 37
48 #define KEY_F9 38
49 #define KEY_F10 39
50 #define KEY_F11 40
51 #define KEY_F12 41
0c2b006 Fixed bugs with F-key tabbing
ec429 authored
52 #define KEY_F(n) ((int[12]){KEY_F1,KEY_F2,KEY_F3,KEY_F4,KEY_F5,KEY_F6,KEY_F7,KEY_F8,KEY_F9,KEY_F10,KEY_F11,KEY_F12,}[n-1])
Something went wrong with that request. Please try again.