Subversion Repositories shark

Rev

Rev 547 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
519 mauro 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   Mauro Marinoni      <mauro.marinoni@unipv.it>
13
 *   (see the web pages for full authors list)
14
 *
15
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
16
 *
17
 * http://www.sssup.it
18
 * http://retis.sssup.it
19
 * http://shark.sssup.it
20
 */
21
 
22
/*
23
 * Copyright (C) 2000 Paolo Gai
24
 *
25
 * This program is free software; you can redistribute it and/or modify
26
 * it under the terms of the GNU General Public License as published by
27
 * the Free Software Foundation; either version 2 of the License, or
28
 * (at your option) any later version.
29
 *
30
 * This program is distributed in the hope that it will be useful,
31
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33
 * GNU General Public License for more details.
34
 *
35
 * You should have received a copy of the GNU General Public License
36
 * along with this program; if not, write to the Free Software
37
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
38
 *
39
 */
40
 
41
#ifndef __KEYCODE_H__
42
#define __KEYCODE_H__
43
 
44
#define NUM_OF_KEY              0x90    /* Till the end */
45
#define TABLE_KEY_SIZE          0x3A    /* Till KEY_SPC */
46
 
47
#define KEY_ESC         0x01
48
#define KEY_1           0x02
49
#define KEY_2           0x03
50
#define KEY_3           0x04
51
#define KEY_4           0x05
52
#define KEY_5           0x06
53
#define KEY_6           0x07
54
#define KEY_7           0x08
55
#define KEY_8           0x09
56
#define KEY_9           0x0A
57
#define KEY_0           0x0B
58
#define KEY_SUB         0x0C
59
#define KEY_PLUS        0x0D
60
#define KEY_BKS         0x0E
61
#define KEY_TAB         0x0F
62
#define KEY_Q           0x10
63
#define KEY_W           0x11
64
#define KEY_E           0x12
65
#define KEY_R           0x13
66
#define KEY_T           0x14
67
#define KEY_Y           0x15
68
#define KEY_U           0x16
69
#define KEY_I           0x17
70
#define KEY_O           0x18
71
#define KEY_P           0x19
72
#define KEY_BRL         0x1A
73
#define KEY_BRR         0x1B
74
#define KEY_ENT         0x1C
75
#define KEY_CTRLL       0x1D
76
#define KEY_A           0x1E
77
#define KEY_S           0x1F
78
#define KEY_D           0x20
79
#define KEY_F           0x21
80
#define KEY_G           0x22
81
#define KEY_H           0x23
82
#define KEY_J           0x24
83
#define KEY_K           0x25
84
#define KEY_L           0x26
85
#define KEY_COL         0x27
86
#define KEY_API         0x28
87
#define KEY_TIL         0x29
88
#define KEY_SHL         0x2A
89
#define KEY_BSL         0x2B
90
#define KEY_Z           0x2C
91
#define KEY_X           0x2D
92
#define KEY_C           0x2E
93
#define KEY_V           0x2F
94
#define KEY_B           0x30
95
#define KEY_N           0x31
96
#define KEY_M           0x32
97
#define KEY_LT          0x33
98
#define KEY_GT          0x34
99
#define KEY_SLH         0x35
100
#define KEY_SHR         0x36
101
#define PAD_AST         0x37
102
#define KEY_ALTL        0x38
103
#define KEY_SPC         0x39
104
#define KEY_CPSLOCK     0x3A
105
#define KEY_F1          0x3B
106
#define KEY_F2          0x3C
107
#define KEY_F3          0x3D
108
#define KEY_F4          0x3E
109
#define KEY_F5          0x3F
110
#define KEY_F6          0x40
111
#define KEY_F7          0x41
112
#define KEY_F8          0x42
113
#define KEY_F9          0x43
114
#define KEY_F10         0x44
115
#define PAD_NUMLOCK     0x45
116
#define EXT_SCRLOCK     0x46
117
#define PAD_HOME        0x47
118
#define PAD_UP          0x48
119
#define PAD_PGUP        0x49
120
#define PAD_SUB         0x4A
121
#define PAD_LEFT        0x4B
122
#define PAD_5           0x4C
123
#define PAD_RIGHT       0x4D
124
#define PAD_PLUS        0x4E
125
#define PAD_END         0x4F
126
#define PAD_DOWN        0x50
127
#define PAD_PGDW        0x51
128
#define PAD_INS         0x52
129
#define PAD_DEL         0x53
130
 
131
#define KEY_MACRO       0x56    /* ?!? */
132
#define KEY_F11         0x57
133
#define KEY_F12         0x58
134
 
135
#define PAD_ENT         0x60
136
#define KEY_CTRLR       0x61
137
#define PAD_SLH         0x62
138
#define EXT_PTRSC       0x63
139
#define KEY_ALTR        0x64
140
 
141
#define EXT_HOME        0x66
142
#define EXT_UP          0x67
143
#define EXT_PGUP        0x68
144
#define EXT_LEFT        0x69
145
#define EXT_RIGHT       0x6A
146
#define EXT_END         0x6B
147
#define EXT_DOWN        0x6C
148
#define EXT_PGDW        0x6D
149
#define EXT_INS         0x6E
150
#define EXT_DEL         0x6F
151
 
152
#define PWR_POWER       0x74
153
 
154
#define EXT_PAUSE       0x77
155
 
156
#define WIN_L           0x7D
157
#define WIN_R           0x7E
158
#define WIN_APPS        0x7F
159
 
160
#define PWR_SLEEP       0x8E
161
#define PWR_WAKE        0x8F
162
 
163
#endif /* __KEYCODE_H__ */