rockbox/apps/gui
Christian Soffke 3d44fe94f3 skin_display: simplify skin_wait_for_action
Reduces GNU Complexity score from 6 to 2.

Slightly adjusts behavior:

1) With TIMEOUT_NOBLOCK and peak meters enabled,
   skin_wait_for_action always returned BUTTON_NONE,
   and did nothing else. Presumably unintentional.

   WPS was not affected, since it always uses HZ/5 for the
   timeout. The FM screen uses TIMEOUT_NOBLOCK only when
   fms_do_button_loop is called with update_screen == true.

   skin_wait_for_action now returns the result of get_action
   in any given scenario.

2) fixes incorrect next_refresh calculation when peak_meters
   are enabled on multiple screens

3) button loop now refreshes peak meters when
   current_tick >= next_refresh, instead of when
   current_tick > next_refresh

Change-Id: Iaca37dbdde6057f593659b2feb97b61ac4cc4b02
2026-08-22 15:35:10 +02:00
..
bitmap touchscreen: Kinetic scrolling v3 2026-08-13 08:24:51 -04:00
skin_engine skin_display: simplify skin_wait_for_action 2026-08-22 15:35:10 +02:00
backdrop.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
backdrop.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
color_picker.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
color_picker.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
folder_select.c [coverity] folder_select.c find_from_filename() guard against NULL 2024-06-05 23:38:25 -04:00
folder_select.h New GUI browser to select one (or more) folders. 2012-07-30 21:20:51 +02:00
icon.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
icon.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
line.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
line.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
list.c allow softlock in additional screens 2026-07-05 12:59:27 +02:00
list.h Fix remaining red from c93c7bfdcb -- dbtool and warble builds 2026-08-13 09:59:52 -04:00
mask_select.c mask_select guard against null pointers 2021-08-03 11:00:59 +00:00
mask_select.h Selective Backlight/Advanced Softlock - Selective actions based on context 2017-01-17 23:06:17 +01:00
option_select.c allow softlock in additional screens 2026-07-05 12:59:27 +02:00
option_select.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
pitchscreen.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
pitchscreen.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
quickscreen.c quickscreen: update SBS after each button press 2026-08-16 16:33:38 +02:00
quickscreen.h skin_engine/quickscreen: get rid of unused code, update comment, naming 2026-08-16 14:39:43 +02:00
scrollbar.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
scrollbar.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
splash.c Fix red in 2c5482cab9 2026-08-20 14:34:59 +01:00
splash.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
statusbar-skinned.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
statusbar-skinned.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
statusbar.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
statusbar.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
usb_screen.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
usb_screen.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
viewport.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
viewport.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
wps.c hibyr1: add USB DAC scaffolding 2026-07-22 15:22:46 -04:00
wps.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
yesno.c chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
yesno.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00