[MPlayer-dev-eng] [PATCH] one input key more commands

Ötvös Attila oattila at chello.hu
Sat Mar 31 19:35:24 CEST 2007


Hi All!

I modified input key bind so can bind more commands to one key.

Whith mp_input_set_section() can set which section of key command will use.

Example settings in mplayer.c:

mp_input_set_section(NULL);
if(mpctx->stream->type==STREAMTYPE_DVDNAV) mp_input_set_section("dvdnav");
if(mpctx->stream->type==STREAMTYPE_TV) mp_input_set_section("tv");

Example input.conf:

RIGHT seek +10
RIGHT {tv} tv_step_channel 1
RIGHT {teletext} vbi_step_page 1
RIGHT {dvdnav} dvdnav 4
RIGHT {menu} menu right

Best regards!
Attila

-------------- next part --------------
A non-text attachment was scrubbed...
Name: input-section.patch
Type: text/x-diff
Size: 5606 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070331/121a4d18/attachment.patch>


More information about the MPlayer-dev-eng mailing list