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  */
22 
23 #ifndef MPLAYER_KEYCODES_H
24 #define MPLAYER_KEYCODES_H
25 
26 #define KEY_BASE 0x1000000
27 
28 enum {
29     KEY_BACKSPACE = 8,
30     KEY_TAB = 9,
31     KEY_ENTER = 13,
32     KEY_ESC = 27,
33     KEY_DELETE = 127,
34     /* Control keys */
35     KEY_INSERT = KEY_BASE,
36     KEY_HOME,
37     KEY_END,
38     KEY_PAGE_UP,
39     KEY_PAGE_DOWN,
40     /* Cursor movement */
41     KEY_RIGHT = KEY_BASE + 16,
42     KEY_LEFT,
43     KEY_DOWN,
44     KEY_UP,
45     /* Keypad keys */
46     KEY_KP0 = KEY_BASE + 32,
47     KEY_KP1,
48     KEY_KP2,
49     KEY_KP3,
50     KEY_KP4,
51     KEY_KP5,
52     KEY_KP6,
53     KEY_KP7,
54     KEY_KP8,
55     KEY_KP9,
56     KEY_KPDEC,
57     KEY_KPINS,
58     KEY_KPDEL,
59     KEY_KPENTER,
60     /* Key combination keys */
61     KEY_CTRL = KEY_BASE + 48,
62     /* Function keys */
63     KEY_F = KEY_BASE + 64,
64     /* Multimedia keyboard/remote keys */
65     KEY_POWER = KEY_BASE+384,
66     KEY_MENU,
67     KEY_PLAY,
68     KEY_PAUSE,
69     KEY_PLAYPAUSE,
70     KEY_STOP,
71     KEY_FORWARD,
72     KEY_REWIND,
73     KEY_NEXT,
74     KEY_PREV,
75     KEY_VOLUME_UP,
76     KEY_VOLUME_DOWN,
77     KEY_MUTE,
78     /* Special internal/virtual keys */
79     KEY_CLOSE_WIN = KEY_BASE + 0x1000,
80 };
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 
90 #endif /* MPLAYER_KEYCODES_H */
91