From 423b95bf5cc46da5952a907fa565c0c7119724f0 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 30 Apr 2008 13:00:59 +0300 Subject: input: Move cmd_queue to context struct Menu instances now also need a input context pointer to queue commands. --- libmenu/menu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmenu/menu.h') diff --git a/libmenu/menu.h b/libmenu/menu.h index 7b63fad547..3a3f8fd6c3 100644 --- a/libmenu/menu.h +++ b/libmenu/menu.h @@ -14,6 +14,7 @@ struct m_struct_st; struct menu_s { struct MPContext *ctx; struct m_config *mconfig; + struct input_ctx *input_ctx; void (*draw)(menu_t* menu,mp_image_t* mpi); void (*read_cmd)(menu_t* menu,int cmd); int (*read_key)(menu_t* menu,int cmd); @@ -53,7 +54,8 @@ typedef struct menu_info_s { #define MENU_CMD_CLICK 11 /// Global init/uninit -int menu_init(struct MPContext *mpctx, struct m_config *mconfig, char* cfg_file); +int menu_init(struct MPContext *mpctx, struct m_config *mconfig, + struct input_ctx *input_ctx, char* cfg_file); void menu_uninit(void); /// Open a menu defined in the config file -- cgit v1.2.3