annotate libvo/wskeys.h @ 33672:e576232a39d5

Prevent balance from hopping. Only recalculate the balance if the balance has changed, not if just the volume has changed. Because (at least with my soundcard) not all volume values can be stored, but seem to be mapped onto a discrete value set, recalculation the balance from the volume isn't accurate enough.
author ib
date Tue, 28 Jun 2011 18:16:06 +0000
parents cceb74e98445
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28446
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
1 /*
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
2 * This file is part of MPlayer.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
3 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
5 * it under the terms of the GNU General Public License as published by
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
7 * (at your option) any later version.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
8 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
12 * GNU General Public License for more details.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
13 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
14 * You should have received a copy of the GNU General Public License along
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28134
diff changeset
17 */
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
19 #ifndef MPLAYER_WSKEYS_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
20 #define MPLAYER_WSKEYS_H
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21
33521
8966911e5233 Allow Pause/Break key to be bound as MPlayer input key under X11.
diego
parents: 28446
diff changeset
22 #define wsPause 0x13 + 256
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 #define wsUp 0x52 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 #define wsDown 0x54 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 #define wsLeft 0x51 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 #define wsRight 0x53 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 #define wsLeftCtrl 0xe3 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 #define wsRightCtrl 0xe4 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 #define wsLeftAlt 0xe9 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 #define wsRightAlt 0x7e + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 #define wsLeftShift 0xe1 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 #define wsRightShift 0xe2 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 #define wsEnter 0x0d + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 #define wsBackSpace 0x08 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 #define wsCapsLock 0xe5 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 #define wsTab 0x09 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 #define wsF1 0xbe + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 #define wsF2 0xbf + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 #define wsF3 0xc0 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 #define wsF4 0xc1 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 #define wsF5 0xc2 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 #define wsF6 0xc3 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 #define wsF7 0xc4 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 #define wsF8 0xc5 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 #define wsF9 0xc6 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 #define wsF10 0xc7 + 256
11793
faa111ce1315 Support binding F11 and F12 keys to commands.
diego
parents: 10936
diff changeset
47 #define wsF11 0xc8 + 256
faa111ce1315 Support binding F11 and F12 keys to commands.
diego
parents: 10936
diff changeset
48 #define wsF12 0xc9 + 256
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 #define wsInsert 0x63 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 #define wsDelete 0xff + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 #define wsHome 0x50 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 #define wsEnd 0x57 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 #define wsPageUp 0x55 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 #define wsPageDown 0x56 + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 #define wsNumLock 0x7f + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 #define wsEscape 0x1b + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 #define wsGrayEnter 0x8d + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 #define wsGrayPlus 0xab + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 #define wsGrayMinus 0xad + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60 #define wsGrayMul 0xaa + 256
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 #define wsGrayDiv 0xaf + 256
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: 3490
diff changeset
62 #define wsGrayDecimal 0xae + 256
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: 3490
diff changeset
63 #define wsGray0 0xb0 + 256
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: 3490
diff changeset
64 #define wsGray1 0xb1 + 256
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: 3490
diff changeset
65 #define wsGray2 0xb2 + 256
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: 3490
diff changeset
66 #define wsGray3 0xb3 + 256
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: 3490
diff changeset
67 #define wsGray4 0xb4 + 256
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: 3490
diff changeset
68 #define wsGray5 0xb5 + 256
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: 3490
diff changeset
69 #define wsGray6 0xb6 + 256
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: 3490
diff changeset
70 #define wsGray7 0xb7 + 256
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: 3490
diff changeset
71 #define wsGray8 0xb8 + 256
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: 3490
diff changeset
72 #define wsGray9 0xb9 + 256
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: 3490
diff changeset
73 #define wsGrayHome 0x95 + 256
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: 3490
diff changeset
74 #define wsGrayLeft 0x96 + 256
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: 3490
diff changeset
75 #define wsGrayUp 0x97 + 256
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: 3490
diff changeset
76 #define wsGrayRight 0x98 + 256
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: 3490
diff changeset
77 #define wsGrayDown 0x99 + 256
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: 3490
diff changeset
78 #define wsGrayPgUp 0x9a + 256
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: 3490
diff changeset
79 #define wsGrayPgDn 0x9b + 256
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: 3490
diff changeset
80 #define wsGrayEnd 0x9c + 256
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: 3490
diff changeset
81 #define wsGray5Dup 0x9d + 256
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: 3490
diff changeset
82 #define wsGrayInsert 0x9e + 256
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: 3490
diff changeset
83 #define wsGrayDelete 0x9f + 256
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84
33537
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
85 // keys for multimedia keyboards
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
86
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
87 #define wsXF86LowerVolume 0x11 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
88 #define wsXF86RaiseVolume 0x13 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
89 #define wsXF86Mute 0x12 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
90 #define wsXF86Play 0x14 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
91 #define wsXF86Pause 0x31 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
92 #define wsXF86Stop 0x15 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
93 #define wsXF86Prev 0x16 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
94 #define wsXF86Next 0x17 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
95 #define wsXF86Media 0x32 + 256
cceb74e98445 Move key definitions for multimedia keyboards to libvo/wskeys.h,
ib
parents: 33521
diff changeset
96
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
97 #endif /* MPLAYER_WSKEYS_H */