mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Button queue handling is split from main button driver
First half of https://gerrit.rockbox.org/r/c/rockbox/+/570 Change-Id: Icc64dfd8194c18f69564ed5f8bf7dd70a4330eb9
This commit is contained in:
parent
5954a2fd48
commit
da9d67a0fe
30 changed files with 266 additions and 221 deletions
|
|
@ -694,7 +694,7 @@ static int kinetic_callback(struct timeout *tmo)
|
|||
|
||||
/* let get_action() timeout, which loads to a
|
||||
* gui_synclist_draw() call from the main thread */
|
||||
queue_post(&button_queue, BUTTON_REDRAW, 0);
|
||||
button_queue_post(BUTTON_REDRAW, 0);
|
||||
/* stop if the velocity hit or crossed zero */
|
||||
if (!data->velocity)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ void do_sbs_update_callback(unsigned short id, void *param)
|
|||
skin_request_full_update(CUSTOM_STATUSBAR);
|
||||
force_waiting = true;
|
||||
/* force timeout in wps main loop, so that the update is instantly */
|
||||
queue_post(&button_queue, BUTTON_NONE, 0);
|
||||
button_queue_post(BUTTON_NONE, 0);
|
||||
}
|
||||
|
||||
void sb_skin_set_update_delay(int delay)
|
||||
|
|
|
|||
|
|
@ -514,7 +514,7 @@ static void wps_lcd_activation_hook(unsigned short id, void *param)
|
|||
(void)param;
|
||||
skin_request_full_update(WPS);
|
||||
/* force timeout in wps main loop, so that the update is instantly */
|
||||
queue_post(&button_queue, BUTTON_NONE, 0);
|
||||
button_queue_post(BUTTON_NONE, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue