summaryrefslogtreecommitdiff
path: root/apps/gui/wps.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/wps.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/wps.c')
-rw-r--r--apps/gui/wps.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 6ab016f88d..1489ff0026 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -227,7 +227,8 @@ static bool update_onvol_change(struct gui_wps * gwps)
227static int skintouch_to_wps(struct wps_data *data) 227static int skintouch_to_wps(struct wps_data *data)
228{ 228{
229 int offset = 0; 229 int offset = 0;
230 int button = skin_get_touchaction(data, &offset); 230 struct touchregion *region;
231 int button = skin_get_touchaction(data, &offset, &region);
231 switch (button) 232 switch (button)
232 { 233 {
233 case ACTION_STD_PREV: 234 case ACTION_STD_PREV:
@@ -271,6 +272,13 @@ static int skintouch_to_wps(struct wps_data *data)
271 setvol(); 272 setvol();
272 } 273 }
273 return ACTION_TOUCHSCREEN; 274 return ACTION_TOUCHSCREEN;
275 case ACTION_SETTINGS_INC:
276 case ACTION_SETTINGS_DEC:
277 {
278 const struct settings_list *setting = region->extradata;
279 option_select_next_val(setting, button == ACTION_SETTINGS_DEC, true);
280 }
281 return ACTION_REDRAW;
274 } 282 }
275 return button; 283 return button;
276} 284}