diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-08-17 12:33:36 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-08-17 12:33:36 +0000 |
| commit | f1781318d3483bac2bb5f87f4bdb96f678e6945a (patch) | |
| tree | 854da549cfca5dc0e33084beb681453dbf28b4b4 /apps/action.h | |
| parent | 0b35bcfc7151e7e12b221d6917e31a46c73e1d3a (diff) | |
| download | rockbox-f1781318d3483bac2bb5f87f4bdb96f678e6945a.zip rockbox-f1781318d3483bac2bb5f87f4bdb96f678e6945a.tar.gz rockbox-f1781318d3483bac2bb5f87f4bdb96f678e6945a.tar.bz2 rockbox-f1781318d3483bac2bb5f87f4bdb96f678e6945a.tar.xz | |
software keylock works again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10632 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.h')
| -rw-r--r-- | apps/action.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/action.h b/apps/action.h index c73a9e4..e95d009 100644 --- a/apps/action.h +++ b/apps/action.h @@ -29,6 +29,12 @@ #define CONTEXT_REMOTE 0x80000000 /* | this against another context to get remote buttons for that context */ #define CONTEXT_CUSTOM 0x40000000 /* | this against anything to get your context number */ +#ifndef HAS_BUTTON_HOLD +#define ALLOW_SOFTLOCK 0x20000000 /* will be stripped.. never needed except in calls to get_action() */ +#else +#define ALLOW_SOFTLOCK 0 +#endif + enum { CONTEXT_STD = 0, /* These CONTEXT_ values were here before me, @@ -54,6 +60,7 @@ enum { ACTION_NONE = BUTTON_NONE, ACTION_UNKNOWN, + ACTION_REDRAW, /* returned if keys are locked and we splash()'ed */ /* standard actions, use these first */ ACTION_STD_PREV, @@ -66,9 +73,7 @@ enum { ACTION_STD_CONTEXT, ACTION_STD_MENU, ACTION_STD_QUICKSCREEN, - ACTION_STD_KEYLOCK, /* software keylock in wps screen, very optional - use with action_setsoftwarekeylock */ - + ACTION_STD_KEYLOCK, /* code context actions */ @@ -165,12 +170,9 @@ void action_signalscreenchange(void); /* call this if you need to check for ACTION_STD_CANCEL only (i.e user abort! */ bool action_userabort(int timeout); -/* on targets without hardware keylock, use this to to emulate keylock. - unlock_action is the action which will disaable the keylock - allow_remote should be true if you want the remote buttons to still be usable while locked */ -void action_setsoftwarekeylock(int unlock_action, bool allow_remote); - /* no other code should need this apart from action.c */ const struct button_mapping* get_context_mapping(int context); - +#ifndef HAS_BUTTON_HOLD +bool is_keys_locked(void); +#endif #endif |