Mercurial > mplayer.hg
diff libmenu/menu.h @ 25502:605d4e3e403f
From now on, libmenu does not steal all input keys from input modules.
author | ulion |
---|---|
date | Wed, 26 Dec 2007 13:13:48 +0000 |
parents | 7ef04742572c |
children | 6ac1ece1f9fe |
line wrap: on
line diff
--- a/libmenu/menu.h Wed Dec 26 04:15:56 2007 +0000 +++ b/libmenu/menu.h Wed Dec 26 13:13:48 2007 +0000 @@ -10,7 +10,7 @@ struct MPContext *ctx; void (*draw)(menu_t* menu,mp_image_t* mpi); void (*read_cmd)(menu_t* menu,int cmd); - void (*read_key)(menu_t* menu,int cmd); + int (*read_key)(menu_t* menu,int cmd); void (*close)(menu_t* menu); struct m_struct_st* priv_st; struct menu_priv_s* priv; @@ -56,7 +56,7 @@ void menu_draw(menu_t* menu,mp_image_t* mpi); void menu_read_cmd(menu_t* menu,int cmd); void menu_close(menu_t* menu); -void menu_read_key(menu_t* menu,int cmd); +int menu_read_key(menu_t* menu,int cmd); //// Default implementation int menu_dflt_read_key(menu_t* menu,int cmd);