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
This commit is contained in:
Jonathan Gordon 2012-01-12 22:28:36 +11:00
parent 5ef27368f1
commit eb2ea7f9ad
7 changed files with 60 additions and 10 deletions

View file

@ -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));