2 * KEY code definitions for GyS-TermIO v2.0
4 * copyright (C) 1999 A'rpi/ESP-team
6 * This file is part of MPlayer.
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.
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.
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.
23 #ifndef MPLAYER_KEYCODES_H
24 #define MPLAYER_KEYCODES_H
29 #define KEY_BASE 0x100
32 #define KEY_F (KEY_BASE+64)
35 #define KEY_CTRL (KEY_BASE)
36 #define KEY_BACKSPACE (KEY_CTRL+0)
37 #define KEY_DELETE (KEY_CTRL+1)
38 #define KEY_INSERT (KEY_CTRL+2)
39 #define KEY_HOME (KEY_CTRL+3)
40 #define KEY_END (KEY_CTRL+4)
41 #define KEY_PAGE_UP (KEY_CTRL+5)
42 #define KEY_PAGE_DOWN (KEY_CTRL+6)
43 #define KEY_ESC (KEY_CTRL+7)
45 /* Control keys short name */
46 #define KEY_BS KEY_BACKSPACE
47 #define KEY_DEL KEY_DELETE
48 #define KEY_INS KEY_INSERT
49 #define KEY_PGUP KEY_PAGE_UP
50 #define KEY_PGDOWN KEY_PAGE_DOWN
51 #define KEY_PGDWN KEY_PAGE_DOWN
54 #define KEY_CRSR (KEY_BASE+16)
55 #define KEY_RIGHT (KEY_CRSR+0)
56 #define KEY_LEFT (KEY_CRSR+1)
57 #define KEY_DOWN (KEY_CRSR+2)
58 #define KEY_UP (KEY_CRSR+3)
60 /* Multimedia keyboard/remote keys */
61 #define KEY_MM_BASE (0x100+384)
62 #define KEY_POWER (KEY_MM_BASE+0)
63 #define KEY_MENU (KEY_MM_BASE+1)
64 #define KEY_PLAY (KEY_MM_BASE+2)
65 #define KEY_PAUSE (KEY_MM_BASE+3)
66 #define KEY_PLAYPAUSE (KEY_MM_BASE+4)
67 #define KEY_STOP (KEY_MM_BASE+5)
68 #define KEY_FORWARD (KEY_MM_BASE+6)
69 #define KEY_REWIND (KEY_MM_BASE+7)
70 #define KEY_NEXT (KEY_MM_BASE+8)
71 #define KEY_PREV (KEY_MM_BASE+9)
72 #define KEY_VOLUME_UP (KEY_MM_BASE+10)
73 #define KEY_VOLUME_DOWN (KEY_MM_BASE+11)
74 #define KEY_MUTE (KEY_MM_BASE+12)
77 #define KEY_KEYPAD (KEY_BASE+32)
78 #define KEY_KP0 (KEY_KEYPAD+0)
79 #define KEY_KP1 (KEY_KEYPAD+1)
80 #define KEY_KP2 (KEY_KEYPAD+2)
81 #define KEY_KP3 (KEY_KEYPAD+3)
82 #define KEY_KP4 (KEY_KEYPAD+4)
83 #define KEY_KP5 (KEY_KEYPAD+5)
84 #define KEY_KP6 (KEY_KEYPAD+6)
85 #define KEY_KP7 (KEY_KEYPAD+7)
86 #define KEY_KP8 (KEY_KEYPAD+8)
87 #define KEY_KP9 (KEY_KEYPAD+9)
88 #define KEY_KPDEC (KEY_KEYPAD+10)
89 #define KEY_KPINS (KEY_KEYPAD+11)
90 #define KEY_KPDEL (KEY_KEYPAD+12)
91 #define KEY_KPENTER (KEY_KEYPAD+13)
94 #define KEY_INTERN (0x1000)
95 #define KEY_CLOSE_WIN (KEY_INTERN+0)
97 #endif /* MPLAYER_KEYCODES_H */