touchscreen: Port list code to gesture API

Make use of the new gesture API to overhaul list touch support.
This should fix most of the annoyances with touch navigation in
menus and make the touchscreen easier to use.

Change-Id: Ied300947fcf755e2810e9348496ed86eaf620669
This commit is contained in:
Aidan MacDonald 2022-04-23 19:04:29 +01:00 committed by Solomon Peachy
parent e2363b0e2c
commit 67233114f7
3 changed files with 242 additions and 374 deletions

View file

@ -163,6 +163,8 @@ void gui_synclist_init(struct gui_synclist * gui_list,
gui_synclist_init_display_settings(gui_list);
#ifdef HAVE_TOUCHSCREEN
gui_list->y_pos = 0;
gui_list->scroll_base_y = 0;
gui_list->scroll_mode = 0;
#endif
FOR_NB_SCREENS(i)
{