gmerlin
keycodes.h
1/*****************************************************************
2 * gmerlin - a general purpose multimedia framework and applications
3 *
4 * Copyright (c) 2001 - 2012 Members of the Gmerlin project
5 * gmerlin-general@lists.sourceforge.net
6 * http://gmerlin.sourceforge.net
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * *****************************************************************/
21
22/*
23 * System independent keycode definitions
24 */
25
32#define BG_KEY_SHIFT_MASK (1<<0)
33#define BG_KEY_CONTROL_MASK (1<<1)
34#define BG_KEY_ALT_MASK (1<<2)
35#define BG_KEY_SUPER_MASK (1<<3)
36#define BG_KEY_BUTTON1_MASK (1<<4)
37#define BG_KEY_BUTTON2_MASK (1<<5)
38#define BG_KEY_BUTTON3_MASK (1<<6)
39#define BG_KEY_BUTTON4_MASK (1<<7)
40#define BG_KEY_BUTTON5_MASK (1<<8)
41
42#define BG_KEY_NONE -1
43
44#define BG_KEY_0 0
45#define BG_KEY_1 1
46#define BG_KEY_2 2
47#define BG_KEY_3 3
48#define BG_KEY_4 4
49#define BG_KEY_5 5
50#define BG_KEY_6 6
51#define BG_KEY_7 7
52#define BG_KEY_8 8
53#define BG_KEY_9 9
54
55#define BG_KEY_SPACE 10
56#define BG_KEY_RETURN 11
57#define BG_KEY_LEFT 12
58#define BG_KEY_RIGHT 13
59#define BG_KEY_UP 14
60#define BG_KEY_DOWN 15
61#define BG_KEY_PAGE_UP 16
62#define BG_KEY_PAGE_DOWN 17
63#define BG_KEY_HOME 18
64#define BG_KEY_PLUS 19
65#define BG_KEY_MINUS 20
66#define BG_KEY_TAB 21
67#define BG_KEY_ESCAPE 22
68#define BG_KEY_MENU 23
69
70#define BG_KEY_QUESTION 24
71#define BG_KEY_EXCLAM 25
72#define BG_KEY_QUOTEDBL 26
73#define BG_KEY_DOLLAR 27
74#define BG_KEY_PERCENT 28
75#define BG_KEY_APMERSAND 29
76#define BG_KEY_SLASH 30
77#define BG_KEY_LEFTPAREN 31
78#define BG_KEY_RIGHTPAREN 32
79#define BG_KEY_EQUAL 33
80#define BG_KEY_BACKSLASH 34
81
82#define BG_KEY_A 101
83#define BG_KEY_B 102
84#define BG_KEY_C 103
85#define BG_KEY_D 104
86#define BG_KEY_E 105
87#define BG_KEY_F 106
88#define BG_KEY_G 107
89#define BG_KEY_H 108
90#define BG_KEY_I 109
91#define BG_KEY_J 110
92#define BG_KEY_K 111
93#define BG_KEY_L 112
94#define BG_KEY_M 113
95#define BG_KEY_N 114
96#define BG_KEY_O 115
97#define BG_KEY_P 116
98#define BG_KEY_Q 117
99#define BG_KEY_R 118
100#define BG_KEY_S 119
101#define BG_KEY_T 120
102#define BG_KEY_U 121
103#define BG_KEY_V 122
104#define BG_KEY_W 123
105#define BG_KEY_X 124
106#define BG_KEY_Y 125
107#define BG_KEY_Z 126
108
109#define BG_KEY_a 201
110#define BG_KEY_b 202
111#define BG_KEY_c 203
112#define BG_KEY_d 204
113#define BG_KEY_e 205
114#define BG_KEY_f 206
115#define BG_KEY_g 207
116#define BG_KEY_h 208
117#define BG_KEY_i 209
118#define BG_KEY_j 210
119#define BG_KEY_k 211
120#define BG_KEY_l 212
121#define BG_KEY_m 213
122#define BG_KEY_n 214
123#define BG_KEY_o 215
124#define BG_KEY_p 216
125#define BG_KEY_q 217
126#define BG_KEY_r 218
127#define BG_KEY_s 219
128#define BG_KEY_t 220
129#define BG_KEY_u 221
130#define BG_KEY_v 222
131#define BG_KEY_w 223
132#define BG_KEY_x 224
133#define BG_KEY_y 225
134#define BG_KEY_z 226
135
136
137#define BG_KEY_F1 301
138#define BG_KEY_F2 302
139#define BG_KEY_F3 303
140#define BG_KEY_F4 304
141#define BG_KEY_F5 305
142#define BG_KEY_F6 306
143#define BG_KEY_F7 307
144#define BG_KEY_F8 308
145#define BG_KEY_F9 309
146#define BG_KEY_F10 310
147#define BG_KEY_F11 311
148#define BG_KEY_F12 312
149