From 2172c9147361829e4a65f1c918450b617c4d04d5 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 17 May 2009 06:25:18 +0000 Subject: get repeat/hold actions working on the touchscreen WPS. prepending an action with & means that this will only get triggered if you hold down the area. cabbie WPS updated so the fwd/rwd icons will do that when held or skip fwd/back if just pressed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20974 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/gui/gwps-common.c') diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 9a69c74bf3..9cfff4cba8 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -268,7 +268,13 @@ bool ffwd_rew(int button) break; } if (!exit) + { button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,TIMEOUT_BLOCK); +#ifdef HAVE_TOUCHSCREEN + if (button == ACTION_TOUCHSCREEN) + button = wps_get_touchaction(gui_wps[SCREEN_MAIN].data); +#endif + } } return usb; } -- cgit v1.2.3