diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-15 08:38:23 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-15 08:38:23 +0000 |
commit | 9a7a542de2cac4293a7834ecaebaa4dd14206683 (patch) | |
tree | cc8c3cab6b5b9adecc50ef0564a8c9c06037a575 /apps/gui/wps.c | |
parent | dddd15746fce3a8610a60a6e7e84cf6fa8479f15 (diff) | |
download | rockbox-9a7a542de2cac4293a7834ecaebaa4dd14206683.tar.gz rockbox-9a7a542de2cac4293a7834ecaebaa4dd14206683.zip |
first step of making touch regions usable in all skins, not just the WPS.. no user viewable changes just yet
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26854 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r-- | apps/gui/wps.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 33e9b2167f..0c7975a01a 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c | |||
@@ -728,8 +728,28 @@ int wps_get_touchaction(struct wps_data *data) | |||
728 | if (released) | 728 | if (released) |
729 | wps_disarm_touchregions(data); | 729 | wps_disarm_touchregions(data); |
730 | 730 | ||
731 | /* Now we need to convert buttons to the WPS context */ | ||
732 | switch (returncode) | ||
733 | { | ||
734 | case ACTION_STD_PREV: | ||
735 | return ACTION_WPS_SKIPPREV; | ||
736 | case ACTION_STD_PREVREPEAT: | ||
737 | return ACTION_WPS_SEEKBACK; | ||
738 | case ACTION_STD_NEXT: | ||
739 | return ACTION_WPS_SKIPNEXT; | ||
740 | case ACTION_STD_NEXTREPEAT: | ||
741 | return ACTION_WPS_SEEKFWD; | ||
742 | case ACTION_STD_MENU: | ||
743 | return ACTION_WPS_MENU; | ||
744 | case ACTION_STD_CONTEXT: | ||
745 | return ACTION_WPS_CONTEXT; | ||
746 | case ACTION_STD_QUICKSCREEN: | ||
747 | return ACTION_WPS_QUICKSCREEN; | ||
748 | } | ||
749 | |||
731 | if (returncode != ACTION_NONE) | 750 | if (returncode != ACTION_NONE) |
732 | return returncode; | 751 | return returncode; |
752 | |||
733 | 753 | ||
734 | if ((last_action == ACTION_WPS_SEEKBACK || last_action == ACTION_WPS_SEEKFWD)) | 754 | if ((last_action == ACTION_WPS_SEEKBACK || last_action == ACTION_WPS_SEEKFWD)) |
735 | return ACTION_WPS_STOPSEEK; | 755 | return ACTION_WPS_STOPSEEK; |