From ca701bf62e192ad8cbaea38653e1e44874fede50 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 4 Mar 2007 07:45:12 +0000 Subject: 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 --- apps/action.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'apps/action.h') 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 -- cgit v1.1