Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
23476:cf92211a1565 | 23477:15710094cb15 |
---|---|
250 | 250 |
251 // This creates a copy of a command (used by the auto repeat stuff). | 251 // This creates a copy of a command (used by the auto repeat stuff). |
252 mp_cmd_t* | 252 mp_cmd_t* |
253 mp_cmd_clone(mp_cmd_t* cmd); | 253 mp_cmd_clone(mp_cmd_t* cmd); |
254 | 254 |
255 // Set current input section | |
256 void | |
257 mp_input_set_section(char *name); | |
258 | |
259 // Get current input section | |
260 char* | |
261 mp_input_get_section(void); | |
262 | |
255 // When you create a new driver you should add it in these 2 functions. | 263 // When you create a new driver you should add it in these 2 functions. |
256 void | 264 void |
257 mp_input_init(int use_gui); | 265 mp_input_init(int use_gui); |
258 | 266 |
259 void | 267 void |