Mercurial > mplayer.hg
annotate osdep/keycodes.h @ 35179:94565576f967
Remove useless variable.
author | reimar |
---|---|
date | Fri, 26 Oct 2012 18:58:48 +0000 |
parents | c5f6bc8ae2b4 |
children | 6ac59489c815 |
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 |
1 | 26 #define KEY_BASE 0x100 |
27 | |
34335
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
28 enum { |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
29 KEY_TAB = 9, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
30 KEY_ENTER = 13, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
31 /* Control keys */ |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
32 KEY_BACKSPACE = KEY_BASE, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
33 KEY_DELETE, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
34 KEY_INSERT, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
35 KEY_HOME, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
36 KEY_END, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
37 KEY_PAGE_UP, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
38 KEY_PAGE_DOWN, |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
39 KEY_ESC, |
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 */ |
c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
reimar
parents:
34270
diff
changeset
|
79 KEY_CLOSE_WIN = 0x1000, |
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 */ |