Fix wrong #endif comment that does not match the #ifdef directive.
[mplayer/greg.git] / osdep / keycodes.h
blob306227743d1e0eecd3d8bb2cc6ff86f9384ae181
1 /* KEY code definitions for GyS-TermIO v2.0 (C) 1999 A'rpi/ESP-team */
3 #define KEY_ENTER 13
4 #define KEY_TAB 9
6 #define KEY_BASE 0x100
8 /* Function keys */
9 #define KEY_F (KEY_BASE+64)
11 /* Control keys */
12 #define KEY_CTRL (KEY_BASE)
13 #define KEY_BACKSPACE (KEY_CTRL+0)
14 #define KEY_DELETE (KEY_CTRL+1)
15 #define KEY_INSERT (KEY_CTRL+2)
16 #define KEY_HOME (KEY_CTRL+3)
17 #define KEY_END (KEY_CTRL+4)
18 #define KEY_PAGE_UP (KEY_CTRL+5)
19 #define KEY_PAGE_DOWN (KEY_CTRL+6)
20 #define KEY_ESC (KEY_CTRL+7)
22 /* Control keys short name */
23 #define KEY_BS KEY_BACKSPACE
24 #define KEY_DEL KEY_DELETE
25 #define KEY_INS KEY_INSERT
26 #define KEY_PGUP KEY_PAGE_UP
27 #define KEY_PGDOWN KEY_PAGE_DOWN
28 #define KEY_PGDWN KEY_PAGE_DOWN
30 /* Cursor movement */
31 #define KEY_CRSR (KEY_BASE+16)
32 #define KEY_RIGHT (KEY_CRSR+0)
33 #define KEY_LEFT (KEY_CRSR+1)
34 #define KEY_DOWN (KEY_CRSR+2)
35 #define KEY_UP (KEY_CRSR+3)
37 /* Multimedia keyboard/remote keys */
38 #define KEY_MM_BASE (0x100+384)
39 #define KEY_POWER (KEY_MM_BASE+0)
40 #define KEY_MENU (KEY_MM_BASE+1)
41 #define KEY_PLAY (KEY_MM_BASE+2)
42 #define KEY_PAUSE (KEY_MM_BASE+3)
43 #define KEY_PLAYPAUSE (KEY_MM_BASE+4)
44 #define KEY_STOP (KEY_MM_BASE+5)
45 #define KEY_FORWARD (KEY_MM_BASE+6)
46 #define KEY_REWIND (KEY_MM_BASE+7)
47 #define KEY_NEXT (KEY_MM_BASE+8)
48 #define KEY_PREV (KEY_MM_BASE+9)
49 #define KEY_VOLUME_UP (KEY_MM_BASE+10)
50 #define KEY_VOLUME_DOWN (KEY_MM_BASE+11)
51 #define KEY_MUTE (KEY_MM_BASE+12)
53 /* Keypad keys */
54 #define KEY_KEYPAD (KEY_BASE+32)
55 #define KEY_KP0 (KEY_KEYPAD+0)
56 #define KEY_KP1 (KEY_KEYPAD+1)
57 #define KEY_KP2 (KEY_KEYPAD+2)
58 #define KEY_KP3 (KEY_KEYPAD+3)
59 #define KEY_KP4 (KEY_KEYPAD+4)
60 #define KEY_KP5 (KEY_KEYPAD+5)
61 #define KEY_KP6 (KEY_KEYPAD+6)
62 #define KEY_KP7 (KEY_KEYPAD+7)
63 #define KEY_KP8 (KEY_KEYPAD+8)
64 #define KEY_KP9 (KEY_KEYPAD+9)
65 #define KEY_KPDEC (KEY_KEYPAD+10)
66 #define KEY_KPINS (KEY_KEYPAD+11)
67 #define KEY_KPDEL (KEY_KEYPAD+12)
68 #define KEY_KPENTER (KEY_KEYPAD+13)
70 /* Special keys */
71 #define KEY_INTERN (0x1000)
72 #define KEY_CLOSE_WIN (KEY_INTERN+0)