summaryrefslogtreecommitdiff
path: root/apps/gui/gwps.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-10-09 11:10:26 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-10-09 11:10:26 +0000
commit486869693c020e032626d3da6cd8dffb01217dbe (patch)
treebd088f84aa714986bcb7d57ff737137c886f207c /apps/gui/gwps.h
parentae569c6f820c1b6e8759e2ecc36641b870ae26f3 (diff)
downloadrockbox-486869693c020e032626d3da6cd8dffb01217dbe.tar.gz
rockbox-486869693c020e032626d3da6cd8dffb01217dbe.zip
FS#9460 - Add a tag %mv which can be used to check if the volume button is being pressed (e.g %?mv<yes|no> ). It will stay true after its released for a little over half a second (not configurable unless someone comes up with a nice way to add a parameter to the tag? 1s is too long and .5s is too short...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18752 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps.h')
-rw-r--r--apps/gui/gwps.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h
index 99bf701a7d..579a3409c2 100644
--- a/apps/gui/gwps.h
+++ b/apps/gui/gwps.h
@@ -292,7 +292,10 @@ enum wps_token_type {
292#endif 292#endif
293 293
294 /* Viewport display */ 294 /* Viewport display */
295 WPS_VIEWPORT_ENABLE 295 WPS_VIEWPORT_ENABLE,
296
297 /* buttons */
298 WPS_TOKEN_BUTTON_VOLUME
296}; 299};
297 300
298struct wps_token { 301struct wps_token {
@@ -423,6 +426,9 @@ struct wps_data
423 int num_strings; 426 int num_strings;
424 427
425 bool wps_loaded; 428 bool wps_loaded;
429
430 /* tick the volume button was last pressed */
431 unsigned int button_time_volume;
426}; 432};
427 433
428/* initial setup of wps_data */ 434/* initial setup of wps_data */