diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-07 18:06:53 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-07 18:06:53 +0000 |
commit | 252f69abf7e53c549ab79f373bc5496221f87c92 (patch) | |
tree | 7d05d22c1509b99fa383692c672853de9bc5f18a /input/input.h | |
parent | 5bc80d85dc7ee95b7227daff66899120038b678b (diff) | |
download | mpv-252f69abf7e53c549ab79f373bc5496221f87c92.tar.bz2 mpv-252f69abf7e53c549ab79f373bc5496221f87c92.tar.xz |
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
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 8 |
1 files changed, 8 insertions, 0 deletions
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); |