From 252f69abf7e53c549ab79f373bc5496221f87c92 Mon Sep 17 00:00:00 2001 From: voroshil Date: Thu, 7 Jun 2007 18:06:53 +0000 Subject: 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23497 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'input/input.h') diff --git a/input/input.h b/input/input.h index b2096a7a6b..8017221d7d 100644 --- a/input/input.h +++ b/input/input.h @@ -252,6 +252,14 @@ mp_cmd_free(mp_cmd_t* cmd); 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); -- cgit v1.2.3