[MPlayer-dev-eng] [PATCH] Remove osd menu hardcoded keybindings, support custom keybindings.

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Dec 2 10:19:43 CET 2007


Hello,
On Sun, Dec 02, 2007 at 08:50:09AM +0100, Alban Bedel wrote:
> On Sat, 1 Dec 2007 14:18:11 +0800
> Ulion <ulion2002 at gmail.com> wrote:
> 
> > Hello,
> > 
> > There are keybindings in libmenu for browse osd menu, but it's
> > hardcoded, can not be customized.
> > This patch remove the hardcoded keybindings, and support user defined
> > keybindings from osd menu  browsering.
> > As we known, each input key has only one possible binding defined
> > input.conf, such as arrow up, down, left, and right, but when browsing
> > osd menu, you probably want to use these keys, then they are hardcoded
> > in libmenu. But for users want to use other key to browse osd menu,
> > there's no way to custom browsing keybindings, so I made this patch
> > fix the problem.
> 
> Good idea, the patch seems fine. But why do you change the read_key()
> return type from void to int? afaict from the patch it's useless, but
> as it's mixed changes that's hard to say. If you *realy* need to change
> the prototype then do it in another patch.

The same question applies as to why the menu_def_t typedef is removed.
Makes me think if maybe the patch is a bi too big for what it tries to
do and at least should be split.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list