summaryrefslogtreecommitdiffstats
path: root/apps/misc.h
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/misc.h
parent5ef27368f1bcbe31fb27072983d7a29df8de6845 (diff)
downloadrockbox-eb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906.tar.gz
rockbox-eb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906.tar.bz2
rockbox-eb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906.zip
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/misc.h')
-rw-r--r--apps/misc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/misc.h b/apps/misc.h
index 2206894304..a41a8319ac 100644
--- a/apps/misc.h
+++ b/apps/misc.h
@@ -144,8 +144,10 @@ enum system_sound
/* Play a standard sound */
void system_sound_play(enum system_sound sound);
+typedef bool (*keyclick_callback)(int action, void* data);
+void keyclick_set_callback(keyclick_callback cb, void* data);
/* Produce keyclick based upon button and global settings */
-void keyclick_click(int button);
+void keyclick_click(int action);
#endif /* CONFIG_CODEC == SWCODEC */
void push_current_activity(enum current_activity screen);