Mercurial > mplayer.hg
annotate osdep/keycodes.h @ 36425:e89214f37501
Remove unused definitions.
author | ib |
---|---|
date | Sun, 24 Nov 2013 00:44:44 +0000 |
parents | 7038dec225b1 |
children |
rev | line source |
---|---|
28744 | 1 /* |
2 * KEY code definitions for GyS-TermIO v2.0 | |
3 * | |
4 * copyright (C) 1999 A'rpi/ESP-team | |
5 * | |
6 * This file is part of MPlayer. | |
7 * | |
8 * MPlayer 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 * MPlayer 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 along | |
19 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
21 */ | |
1 | 22 |
26029 | 23 #ifndef MPLAYER_KEYCODES_H |
24 #define MPLAYER_KEYCODES_H | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
16892
diff
changeset
|
25 |
35867 | 26 #define KEY_BASE 0x1000000 |
1 | 27 |
34335
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
28 enum { |
35965
7038dec225b1
Fix KEY_BACKSPACE, KEY_DELETE and KEY_ESC to map to their ASCII equivalents.
reimar
parents:
35867
diff
changeset
|
29 KEY_BACKSPACE = 8, |
34335
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
30 KEY_TAB = 9, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
31 KEY_ENTER = 13, |
35965
7038dec225b1
Fix KEY_BACKSPACE, KEY_DELETE and KEY_ESC to map to their ASCII equivalents.
reimar
parents:
35867
diff
changeset
|
32 KEY_ESC = 27, |
7038dec225b1
Fix KEY_BACKSPACE, KEY_DELETE and KEY_ESC to map to their ASCII equivalents.
reimar
parents:
35867
diff
changeset
|
33 KEY_DELETE = 127, |
34335
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
34 /* Control keys */ |
35965
7038dec225b1
Fix KEY_BACKSPACE, KEY_DELETE and KEY_ESC to map to their ASCII equivalents.
reimar
parents:
35867
diff
changeset
|
35 KEY_INSERT = KEY_BASE, |
34335
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
36 KEY_HOME, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
37 KEY_END, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
38 KEY_PAGE_UP, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
39 KEY_PAGE_DOWN, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
40 /* Cursor movement */ |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
41 KEY_RIGHT = KEY_BASE + 16, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
42 KEY_LEFT, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
43 KEY_DOWN, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
44 KEY_UP, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
45 /* Keypad keys */ |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
46 KEY_KP0 = KEY_BASE + 32, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
47 KEY_KP1, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
48 KEY_KP2, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
49 KEY_KP3, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
50 KEY_KP4, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
51 KEY_KP5, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
52 KEY_KP6, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
53 KEY_KP7, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
54 KEY_KP8, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
55 KEY_KP9, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
56 KEY_KPDEC, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
57 KEY_KPINS, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
58 KEY_KPDEL, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
59 KEY_KPENTER, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
60 /* Key combination keys */ |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
61 KEY_CTRL = KEY_BASE + 48, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
62 /* Function keys */ |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
63 KEY_F = KEY_BASE + 64, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
64 /* Multimedia keyboard/remote keys */ |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
65 KEY_POWER = KEY_BASE+384, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
66 KEY_MENU, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
67 KEY_PLAY, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
68 KEY_PAUSE, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
69 KEY_PLAYPAUSE, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
70 KEY_STOP, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
71 KEY_FORWARD, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
72 KEY_REWIND, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
73 KEY_NEXT, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
74 KEY_PREV, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
75 KEY_VOLUME_UP, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
76 KEY_VOLUME_DOWN, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
77 KEY_MUTE, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
78 /* Special internal/virtual keys */ |
35867 | 79 KEY_CLOSE_WIN = KEY_BASE + 0x1000, |
34335
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
80 }; |
1 | 81 |
82 /* Control keys short name */ | |
83 #define KEY_BS KEY_BACKSPACE | |
84 #define KEY_DEL KEY_DELETE | |
85 #define KEY_INS KEY_INSERT | |
86 #define KEY_PGUP KEY_PAGE_UP | |
87 #define KEY_PGDOWN KEY_PAGE_DOWN | |
88 #define KEY_PGDWN KEY_PAGE_DOWN | |
89 | |
26029 | 90 #endif /* MPLAYER_KEYCODES_H */ |