mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 13:45:03 -05:00
touchscreen: Port skin engine to gesture API
Use the gesture API for improved reliability. Change-Id: I44c4e124132605ecf4f1499f97defd7b4b2d78e8
This commit is contained in:
parent
0f99defe1f
commit
010d22ed29
4 changed files with 268 additions and 256 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue