diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-03-27 07:23:38 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-03-27 07:23:38 +0000 |
commit | 443b1349830912add7211e07557029b9c185d948 (patch) | |
tree | bffa8efdf04b0eb8d3502e0af4691c9a257f1c8f /apps/gui/skin_engine/wps_internals.h | |
parent | 86c4ec7277ac1c2a130a9ac1a3500c8360af5c7e (diff) |
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.h | 11 |
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 { short int y; /* y-pos */ short int width; /* width */ short int height; /* height */ - enum { - WPS_TOUCHREGION_ACTION, - WPS_TOUCHREGION_SCROLLBAR, - WPS_TOUCHREGION_VOLUME - } type; /* type of touch region */ bool reverse_bar; /* if true 0% is the left or top */ - bool repeat; /* requires the area be held for the action */ + enum { + PRESS, /* quick press only */ + LONG_PRESS, /* Long press without repeat */ + REPEAT, /* long press allowing repeats */ + } press_length; int action; /* action this button will return */ bool armed; /* A region is armed on press. Only armed regions are triggered on repeat or release. */ |