diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-21 06:04:19 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-21 06:04:19 +0000 |
commit | a398c2846aa86650aa386a68cb51929477b6aa23 (patch) | |
tree | 4fa695ba8ea3a2b0e0c1f1c1ab5ac9ce27430804 /apps/action.c | |
parent | 2b0ef19900295ef4e8da0fa52a13a04ccf76cb65 (diff) | |
download | rockbox-a398c2846aa86650aa386a68cb51929477b6aa23.tar.gz 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.c | 10 |
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 @@ | |||
38 | #include "language.h" | 38 | #include "language.h" |
39 | #endif | 39 | #endif |
40 | #include "viewport.h" | 40 | #include "viewport.h" |
41 | #ifdef HAVE_TOUCHSCREEN | ||
42 | #include "statusbar-skinned.h" | ||
43 | #endif | ||
41 | 44 | ||
42 | static int last_button = BUTTON_NONE|BUTTON_REL; /* allow the ipod wheel to | 45 | static int last_button = BUTTON_NONE|BUTTON_REL; /* allow the ipod wheel to |
43 | work on startup */ | 46 | work on startup */ |
@@ -320,7 +323,12 @@ static int get_action_worker(int context, int timeout, | |||
320 | 323 | ||
321 | int get_action(int context, int timeout) | 324 | int get_action(int context, int timeout) |
322 | { | 325 | { |
323 | return get_action_worker(context,timeout,NULL); | 326 | int button = get_action_worker(context,timeout,NULL); |
327 | #ifdef HAVE_TOUCHSCREEN | ||
328 | if (button == ACTION_TOUCHSCREEN) | ||
329 | button = sb_touch_to_button(context); | ||
330 | #endif | ||
331 | return button; | ||
324 | } | 332 | } |
325 | 333 | ||
326 | int get_custom_action(int context,int timeout, | 334 | int get_custom_action(int context,int timeout, |