summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/wps_internals.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-03-27 07:23:38 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-03-27 07:23:38 +0000
commit443b1349830912add7211e07557029b9c185d948 (patch)
treebffa8efdf04b0eb8d3502e0af4691c9a257f1c8f /apps/gui/skin_engine/wps_internals.h
parent86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e (diff)
downloadrockbox-443b1349830912add7211e07557029b9c185d948.tar.gz
rockbox-443b1349830912add7211e07557029b9c185d948.zip
Fix touchregions muting volume, and change &<action> to mean 'needs long press but only fire once'. Use *<action> for 'long press and allow repeats'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29653 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r--apps/gui/skin_engine/wps_internals.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index 47453ed34b..0f5cb6df0c 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -188,13 +188,12 @@ struct touchregion {
188 short int y; /* y-pos */ 188 short int y; /* y-pos */
189 short int width; /* width */ 189 short int width; /* width */
190 short int height; /* height */ 190 short int height; /* height */
191 enum {
192 WPS_TOUCHREGION_ACTION,
193 WPS_TOUCHREGION_SCROLLBAR,
194 WPS_TOUCHREGION_VOLUME
195 } type; /* type of touch region */
196 bool reverse_bar; /* if true 0% is the left or top */ 191 bool reverse_bar; /* if true 0% is the left or top */
197 bool repeat; /* requires the area be held for the action */ 192 enum {
193 PRESS, /* quick press only */
194 LONG_PRESS, /* Long press without repeat */
195 REPEAT, /* long press allowing repeats */
196 } press_length;
198 int action; /* action this button will return */ 197 int action; /* action this button will return */
199 bool armed; /* A region is armed on press. Only armed regions are triggered 198 bool armed; /* A region is armed on press. Only armed regions are triggered
200 on repeat or release. */ 199 on repeat or release. */