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/misc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/misc.h') 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); -- cgit v1.2.3