forked from len0rd/rockbox
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:
parent
5ef27368f1
commit
eb2ea7f9ad
7 changed files with 60 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue