From 2172c9147361829e4a65f1c918450b617c4d04d5 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 17 May 2009 06:25:18 +0000 Subject: get repeat/hold actions working on the touchscreen WPS. prepending an action with & means that this will only get triggered if you hold down the area. cabbie WPS updated so the fwd/rwd icons will do that when held or skip fwd/back if just pressed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20974 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/gui/gwps.h') diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h index f3562214a0..ac1cbad60b 100644 --- a/apps/gui/gwps.h +++ b/apps/gui/gwps.h @@ -375,6 +375,7 @@ struct touchregion { short int y; /* y-pos */ short int width; /* width */ short int height; /* height */ + bool repeat; /* requires the area be held for the action */ int action; /* action this button will return */ }; #define MAX_TOUCHREGIONS 12 @@ -533,6 +534,10 @@ extern struct gui_wps gui_wps[NB_SCREENS]; void gui_sync_wps_init(void); +#ifdef HAVE_TOUCHSCREEN +int wps_get_touchaction(struct wps_data *data); +#endif + #ifdef HAVE_ALBUMART /* gives back if WPS contains an albumart tag */ bool gui_sync_wps_uses_albumart(void); -- cgit v1.2.3