Mercurial > mplayer.hg
diff input/input.h @ 23477:15710094cb15
implement "bind sections"
allows to bind one input key to several slave commands (independently for each section)
as shown below:
RIGHT seek +10
RIGHT {tv} tv_step_channel 1
RIGHT {dvdnav} dvdnav 4
Currenlty only "tv" section added.
patch by Otvos Attila oattila at chello dot hu
author | voroshil |
---|---|
date | Thu, 07 Jun 2007 18:06:53 +0000 |
parents | e1859558b37d |
children | a6c619ee9d30 |
line wrap: on
line diff
--- a/input/input.h Thu Jun 07 17:23:23 2007 +0000 +++ b/input/input.h Thu Jun 07 18:06:53 2007 +0000 @@ -252,6 +252,14 @@ mp_cmd_t* mp_cmd_clone(mp_cmd_t* cmd); +// Set current input section +void +mp_input_set_section(char *name); + +// Get current input section +char* +mp_input_get_section(void); + // When you create a new driver you should add it in these 2 functions. void mp_input_init(int use_gui);