From 4caa8326abd590eb01279dde3f4dc6611a9255c8 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 6 Sep 2010 13:33:49 +0000 Subject: 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 --- apps/gui/skin_engine/skin_touchsupport.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/gui/skin_engine/skin_touchsupport.c') 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) * egde_offset is a percentage value for the position of the touch * inside the bar for regions which arnt WPS_TOUCHREGION_ACTION type. */ -int skin_get_touchaction(struct wps_data *data, int* edge_offset) +int skin_get_touchaction(struct wps_data *data, int* edge_offset, + struct touchregion **retregion) { int returncode = ACTION_NONE; short x,y; @@ -84,6 +85,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset) { last_action = r->action; returncode = r->action; + if (retregion) + *retregion = r; } if (pressed) r->armed = true; @@ -99,6 +102,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset) *edge_offset = 100 - *edge_offset; } returncode = r->type; + if (retregion) + *retregion = r; break; } } -- cgit v1.2.3