summaryrefslogtreecommitdiffstats
path: root/apps/action.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-06-21 06:04:19 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-06-21 06:04:19 +0000
commita398c2846aa86650aa386a68cb51929477b6aa23 (patch)
tree4fa695ba8ea3a2b0e0c1f1c1ab5ac9ce27430804 /apps/action.c
parent2b0ef19900295ef4e8da0fa52a13a04ccf76cb65 (diff)
downloadrockbox-a398c2846aa86650aa386a68cb51929477b6aa23.tar.gz
rockbox-a398c2846aa86650aa386a68cb51929477b6aa23.tar.bz2
rockbox-a398c2846aa86650aa386a68cb51929477b6aa23.zip
Touchregion support for the Base Skin and FM Skins. display obviously needs to be in stylus mode for this to work. Just about all screens should be mostly useable if your sbs has the next/prev/select/cancel/menu regions defined.
Plenty of room to add new action abilities if they are wanted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27004 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/action.c b/apps/action.c
index cd76faafec..8f427c8d68 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -38,6 +38,9 @@
#include "language.h"
#endif
#include "viewport.h"
+#ifdef HAVE_TOUCHSCREEN
+#include "statusbar-skinned.h"
+#endif
static int last_button = BUTTON_NONE|BUTTON_REL; /* allow the ipod wheel to
work on startup */
@@ -320,7 +323,12 @@ static int get_action_worker(int context, int timeout,
int get_action(int context, int timeout)
{
- return get_action_worker(context,timeout,NULL);
+ int button = get_action_worker(context,timeout,NULL);
+#ifdef HAVE_TOUCHSCREEN
+ if (button == ACTION_TOUCHSCREEN)
+ button = sb_touch_to_button(context);
+#endif
+ return button;
}
int get_custom_action(int context,int timeout,