Mercurial > mplayer.hg
annotate osdep/keycodes.h @ 27836:bf7f14c6dfaa
Avoid useless casts of malloc results.
author | reimar |
---|---|
date | Fri, 31 Oct 2008 13:12:54 +0000 |
parents | 4129c8cfa742 |
children | 5cfef41a1771 |
rev | line source |
---|---|
1 | 1 /* KEY code definitions for GyS-TermIO v2.0 (C) 1999 A'rpi/ESP-team */ |
2 | |
26029 | 3 #ifndef MPLAYER_KEYCODES_H |
4 #define MPLAYER_KEYCODES_H | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
16892
diff
changeset
|
5 |
1 | 6 #define KEY_ENTER 13 |
7 #define KEY_TAB 9 | |
8 | |
9 #define KEY_BASE 0x100 | |
10 | |
11 /* Function keys */ | |
12 #define KEY_F (KEY_BASE+64) | |
13 | |
14 /* Control keys */ | |
15 #define KEY_CTRL (KEY_BASE) | |
16 #define KEY_BACKSPACE (KEY_CTRL+0) | |
17 #define KEY_DELETE (KEY_CTRL+1) | |
18 #define KEY_INSERT (KEY_CTRL+2) | |
19 #define KEY_HOME (KEY_CTRL+3) | |
20 #define KEY_END (KEY_CTRL+4) | |
21 #define KEY_PAGE_UP (KEY_CTRL+5) | |
22 #define KEY_PAGE_DOWN (KEY_CTRL+6) | |
23 #define KEY_ESC (KEY_CTRL+7) | |
24 | |
25 /* Control keys short name */ | |
26 #define KEY_BS KEY_BACKSPACE | |
27 #define KEY_DEL KEY_DELETE | |
28 #define KEY_INS KEY_INSERT | |
29 #define KEY_PGUP KEY_PAGE_UP | |
30 #define KEY_PGDOWN KEY_PAGE_DOWN | |
31 #define KEY_PGDWN KEY_PAGE_DOWN | |
32 | |
33 /* Cursor movement */ | |
34 #define KEY_CRSR (KEY_BASE+16) | |
35 #define KEY_RIGHT (KEY_CRSR+0) | |
36 #define KEY_LEFT (KEY_CRSR+1) | |
37 #define KEY_DOWN (KEY_CRSR+2) | |
38 #define KEY_UP (KEY_CRSR+3) | |
39 | |
16892
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
40 /* Multimedia keyboard/remote keys */ |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
41 #define KEY_MM_BASE (0x100+384) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
42 #define KEY_POWER (KEY_MM_BASE+0) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
43 #define KEY_MENU (KEY_MM_BASE+1) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
44 #define KEY_PLAY (KEY_MM_BASE+2) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
45 #define KEY_PAUSE (KEY_MM_BASE+3) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
46 #define KEY_PLAYPAUSE (KEY_MM_BASE+4) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
47 #define KEY_STOP (KEY_MM_BASE+5) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
48 #define KEY_FORWARD (KEY_MM_BASE+6) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
49 #define KEY_REWIND (KEY_MM_BASE+7) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
50 #define KEY_NEXT (KEY_MM_BASE+8) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
51 #define KEY_PREV (KEY_MM_BASE+9) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
52 #define KEY_VOLUME_UP (KEY_MM_BASE+10) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
53 #define KEY_VOLUME_DOWN (KEY_MM_BASE+11) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
54 #define KEY_MUTE (KEY_MM_BASE+12) |
9891
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
55 |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
56 /* Keypad keys */ |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
57 #define KEY_KEYPAD (KEY_BASE+32) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
58 #define KEY_KP0 (KEY_KEYPAD+0) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
59 #define KEY_KP1 (KEY_KEYPAD+1) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
60 #define KEY_KP2 (KEY_KEYPAD+2) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
61 #define KEY_KP3 (KEY_KEYPAD+3) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
62 #define KEY_KP4 (KEY_KEYPAD+4) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
63 #define KEY_KP5 (KEY_KEYPAD+5) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
64 #define KEY_KP6 (KEY_KEYPAD+6) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
65 #define KEY_KP7 (KEY_KEYPAD+7) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
66 #define KEY_KP8 (KEY_KEYPAD+8) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
67 #define KEY_KP9 (KEY_KEYPAD+9) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
68 #define KEY_KPDEC (KEY_KEYPAD+10) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
69 #define KEY_KPINS (KEY_KEYPAD+11) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
70 #define KEY_KPDEL (KEY_KEYPAD+12) |
150d1ef4204d
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
alex
parents:
9822
diff
changeset
|
71 #define KEY_KPENTER (KEY_KEYPAD+13) |
16892
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
72 |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
73 /* Special keys */ |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
74 #define KEY_INTERN (0x1000) |
3470c810527b
libvo input cleanup: remove the dependency on libinput,
albeu
parents:
9891
diff
changeset
|
75 #define KEY_CLOSE_WIN (KEY_INTERN+0) |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
16892
diff
changeset
|
76 |
26029 | 77 #endif /* MPLAYER_KEYCODES_H */ |