summaryrefslogtreecommitdiff
path: root/apps/gui/gwps.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-05-17 06:25:18 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-05-17 06:25:18 +0000
commit2172c9147361829e4a65f1c918450b617c4d04d5 (patch)
treecb17cd04ca916afa99898347068eacc1b0a1dff6 /apps/gui/gwps.h
parent03ea24929779fd29ac95cb0bfd8945d269f3733d (diff)
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
Diffstat (limited to 'apps/gui/gwps.h')
-rw-r--r--apps/gui/gwps.h5
1 files changed, 5 insertions, 0 deletions
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);