summaryrefslogtreecommitdiff
path: root/apps/menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2012-01-12 22:28:36 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2012-01-12 22:28:36 +1100
commiteb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906 (patch)
tree64cd1f227d75a5758b52d9b49ae7bdf23f6dbf83 /apps/menu.c
parent5ef27368f1bcbe31fb27072983d7a29df8de6845 (diff)
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
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c3
1 files changed, 3 insertions, 0 deletions
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));