touchscreen: Port skin engine to gesture API

Use the gesture API for improved reliability.

Change-Id: I44c4e124132605ecf4f1499f97defd7b4b2d78e8
This commit is contained in:
Aidan MacDonald 2022-04-24 12:17:26 +01:00 committed by Solomon Peachy
parent 0f99defe1f
commit 010d22ed29
4 changed files with 268 additions and 256 deletions

View file

@ -27,6 +27,7 @@
#include "tag_table.h"
#include "skin_parser.h"
#include "gesture.h"
#ifndef __PCTOOL__
#include "core_alloc.h"
#endif
@ -218,8 +219,6 @@ struct touchregion {
int16_t hpad; /* padding to height */
bool reverse_bar; /* if true 0% is the left or top */
bool allow_while_locked;
bool armed; /* A region is armed on press. Only armed regions are triggered
on repeat or release. */
enum {
PRESS, /* quick press only */
LONG_PRESS, /* Long press without repeat */
@ -371,6 +370,7 @@ struct wps_data
#ifdef HAVE_TOUCHSCREEN
bool touchscreen_locked;
OFFSETTYPE(struct skin_token_list *) touchregions;
struct gesture gesture;
#endif
#ifdef HAVE_ALBUMART
OFFSETTYPE(struct skin_albumart *) albumart;