forked from len0rd/rockbox
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
This commit is contained in:
parent
2b0ef19900
commit
a398c2846a
10 changed files with 252 additions and 149 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue