summaryrefslogtreecommitdiff
path: root/apps/action.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-02-02 18:30:10 +0000
committerThomas Martitz <kugel@rockbox.org>2011-02-02 18:30:10 +0000
commit430ada08644336c3811c6188f1a1d91b1614efc2 (patch)
tree7ae0685f31a830532a557cb8cd5999bf8e2e2668 /apps/action.c
parent48016d5e07e2b5aff1c1044b4b299b7e7138156a (diff)
downloadrockbox-430ada08644336c3811c6188f1a1d91b1614efc2.zip
rockbox-430ada08644336c3811c6188f1a1d91b1614efc2.tar.gz
rockbox-430ada08644336c3811c6188f1a1d91b1614efc2.tar.bz2
rockbox-430ada08644336c3811c6188f1a1d91b1614efc2.tar.xz
Redo r29168. Use similar but existing mechanism in the action system which seems to work better.
Don't eat buttons on context change if it was waiting for button release (you did need another release). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29192 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/action.c b/apps/action.c
index 003f11f..ffb4195 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -192,6 +192,9 @@ static int get_action_worker(int context, int timeout,
{
if (button&BUTTON_REL)
{
+ /* remember the button for the below button eating on context
+ * change */
+ last_button = button;
wait_for_release = false;
}
return ACTION_NONE;