summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_touchsupport.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-09-06 13:33:49 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-09-06 13:33:49 +0000
commit4caa8326abd590eb01279dde3f4dc6611a9255c8 (patch)
treec7f0f858ecda565e688b945ab89cd000d8c4fe2c /apps/gui/skin_engine/skin_touchsupport.c
parent1a92ff099499a657c55e1282dab00276100f99f7 (diff)
downloadrockbox-4caa8326abd590eb01279dde3f4dc6611a9255c8.tar.gz
rockbox-4caa8326abd590eb01279dde3f4dc6611a9255c8.zip
2 new touch region options... "settings_inc" and "settings_dec" which will increase or decrease most of the available settings. To use it put the config name of the setting as the next param after settings_inc... i.e %T(0, 0, 32, 32, settings_inc, repeat)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28009 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_touchsupport.c')
-rw-r--r--apps/gui/skin_engine/skin_touchsupport.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c
index 09fbd86acd..850c1c0647 100644
--- a/apps/gui/skin_engine/skin_touchsupport.c
+++ b/apps/gui/skin_engine/skin_touchsupport.c
@@ -40,7 +40,8 @@ void skin_disarm_touchregions(struct wps_data *data)
40 * egde_offset is a percentage value for the position of the touch 40 * egde_offset is a percentage value for the position of the touch
41 * inside the bar for regions which arnt WPS_TOUCHREGION_ACTION type. 41 * inside the bar for regions which arnt WPS_TOUCHREGION_ACTION type.
42 */ 42 */
43int skin_get_touchaction(struct wps_data *data, int* edge_offset) 43int skin_get_touchaction(struct wps_data *data, int* edge_offset,
44 struct touchregion **retregion)
44{ 45{
45 int returncode = ACTION_NONE; 46 int returncode = ACTION_NONE;
46 short x,y; 47 short x,y;
@@ -84,6 +85,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset)
84 { 85 {
85 last_action = r->action; 86 last_action = r->action;
86 returncode = r->action; 87 returncode = r->action;
88 if (retregion)
89 *retregion = r;
87 } 90 }
88 if (pressed) 91 if (pressed)
89 r->armed = true; 92 r->armed = true;
@@ -99,6 +102,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset)
99 *edge_offset = 100 - *edge_offset; 102 *edge_offset = 100 - *edge_offset;
100 } 103 }
101 returncode = r->type; 104 returncode = r->type;
105 if (retregion)
106 *retregion = r;
102 break; 107 break;
103 } 108 }
104 } 109 }