touchscreen: Port quickscreen to gesture API

Use the gesture API to improve reliability, and allow press and hold
to repeatedly increment or decrement a value like on button targets.

Change-Id: Ic01b7a0802c3dec9f1534f5dd11e006b28a875b6
This commit is contained in:
Aidan MacDonald 2022-04-24 00:08:54 +01:00 committed by Solomon Peachy
parent 94468f693f
commit 0f99defe1f
2 changed files with 25 additions and 11 deletions

View file

@ -28,6 +28,8 @@
#include "screen_access.h"
struct settings_list;
enum quickscreen_item {
QUICKSCREEN_TOP = 0,
QUICKSCREEN_LEFT,
@ -43,11 +45,6 @@ enum quickscreen_return {
QUICKSCREEN_CHANGED = 0x4,
};
struct gui_quickscreen
{
const struct settings_list *items[QUICKSCREEN_ITEM_COUNT];
};
extern int quick_screen_quick(int button_enter);
int quickscreen_set_option(void *data);
bool is_setting_quickscreenable(const struct settings_list *setting);