diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-03-04 07:45:12 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-03-04 07:45:12 +0000 |
| commit | ca701bf62e192ad8cbaea38653e1e44874fede50 (patch) | |
| tree | c5232585bfabf3601a19f9aa73a165aed67c2d84 /apps/action.h | |
| parent | 598629c3bf4bf683812c374af7791f06777873f7 (diff) | |
| download | rockbox-ca701bf62e192ad8cbaea38653e1e44874fede50.zip rockbox-ca701bf62e192ad8cbaea38653e1e44874fede50.tar.gz rockbox-ca701bf62e192ad8cbaea38653e1e44874fede50.tar.bz2 rockbox-ca701bf62e192ad8cbaea38653e1e44874fede50.tar.xz | |
Add a function to get the actual button that was pressed (and some
status codes) instead of the action. Use this to figure out which screen
to do prev/next page on in the lists
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12580 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.h')
| -rw-r--r-- | apps/action.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/action.h b/apps/action.h index c1026d8..7f476a8 100644 --- a/apps/action.h +++ b/apps/action.h @@ -123,8 +123,6 @@ enum { /* list and tree page up/down */ ACTION_LISTTREE_PGUP,/* optional */ ACTION_LISTTREE_PGDOWN,/* optional */ - ACTION_LISTTREE_RC_PGUP,/* optional */ - ACTION_LISTTREE_RC_PGDOWN,/* optional */ /* tree */ ACTION_TREE_ROOT_INIT, @@ -248,4 +246,15 @@ const struct button_mapping* get_context_mapping(int context); #ifndef HAS_BUTTON_HOLD bool is_keys_locked(void); #endif + +/* returns the status code variable from action.c for the button just pressed + If button != NULL it will be set to the actual button code */ +#define ACTION_REMOTE 0x1 /* remote was pressed */ +#define ACTION_REPEAT 0x2 /* action was repeated (NOT button) */ +#define ACTION_IGNORING 0x4 /* action_signalscreenchange() was called \ + waiting for BUTTON_REL */ +int get_action_statuscode(int *button); + + + #endif |