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)
downloadrockbox-2172c9147361829e4a65f1c918450b617c4d04d5.tar.gz
rockbox-2172c9147361829e4a65f1c918450b617c4d04d5.zip
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 {
375 short int y; /* y-pos */ 375 short int y; /* y-pos */
376 short int width; /* width */ 376 short int width; /* width */
377 short int height; /* height */ 377 short int height; /* height */
378 bool repeat; /* requires the area be held for the action */
378 int action; /* action this button will return */ 379 int action; /* action this button will return */
379}; 380};
380#define MAX_TOUCHREGIONS 12 381#define MAX_TOUCHREGIONS 12
@@ -533,6 +534,10 @@ extern struct gui_wps gui_wps[NB_SCREENS];
533 534
534void gui_sync_wps_init(void); 535void gui_sync_wps_init(void);
535 536
537#ifdef HAVE_TOUCHSCREEN
538int wps_get_touchaction(struct wps_data *data);
539#endif
540
536#ifdef HAVE_ALBUMART 541#ifdef HAVE_ALBUMART
537/* gives back if WPS contains an albumart tag */ 542/* gives back if WPS contains an albumart tag */
538bool gui_sync_wps_uses_albumart(void); 543bool gui_sync_wps_uses_albumart(void);