From a398c2846aa86650aa386a68cb51929477b6aa23 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 21 Jun 2010 06:04:19 +0000 Subject: 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 --- apps/action.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps/action.c') 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, -- cgit v1.2.3