From eb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 12 Jan 2012 22:28:36 +1100 Subject: keyclick: Add a callback so screens can cancel a click. Add a generic list callback to stop clicks when we are at the end of the list Change-Id: Iabb44a861dd7506cd883c1bdb0241303fa646746 --- apps/menu.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/menu.c') diff --git a/apps/menu.c b/apps/menu.c index a1e32f4625..ae318b2ffc 100644 --- a/apps/menu.c +++ b/apps/menu.c @@ -381,6 +381,9 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected, gui_buttonbar_draw(&buttonbar); #endif } +#if CONFIG_CODEC == SWCODEC + keyclick_set_callback(gui_synclist_keyclick_callback, &lists); +#endif action = get_action(CONTEXT_MAINMENU, list_do_action_timeout(&lists, HZ)); -- cgit