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/wps.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps/gui/wps.c') 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) static int skintouch_to_wps(struct wps_data *data) { int offset = 0; - int button = skin_get_touchaction(data, &offset); + struct touchregion *region; + int button = skin_get_touchaction(data, &offset, ®ion); switch (button) { case ACTION_STD_PREV: @@ -271,6 +272,13 @@ static int skintouch_to_wps(struct wps_data *data) setvol(); } return ACTION_TOUCHSCREEN; + case ACTION_SETTINGS_INC: + case ACTION_SETTINGS_DEC: + { + const struct settings_list *setting = region->extradata; + option_select_next_val(setting, button == ACTION_SETTINGS_DEC, true); + } + return ACTION_REDRAW; } return button; } -- cgit v1.2.3