From f53779d2f41fc2bcfff5196a279e2192992880e2 Mon Sep 17 00:00:00 2001 From: Shachar Liberman Date: Sat, 12 Aug 2006 13:40:49 +0000 Subject: Committing FS#5182 - One button hold for Horizontal screen scrolling. =>hold RIGHT or LEFT button on a GUI based list to scroll horizontally. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10545 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 0dd03779a5..ac0e44c7f1 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -587,8 +587,9 @@ static bool dirbrowse(void) switch ( button ) { #ifdef TREE_ENTER - case TREE_ENTER: - case TREE_ENTER | BUTTON_REPEAT: + case TREE_ENTER | BUTTON_REL: + if (lastbutton != TREE_ENTER) + break; #endif #ifdef TREE_RC_RUN case TREE_RC_RUN: @@ -617,8 +618,9 @@ static bool dirbrowse(void) restore = true; break; - case TREE_EXIT: - case TREE_EXIT | BUTTON_REPEAT: + case TREE_EXIT | BUTTON_REL: + if (lastbutton != TREE_EXIT) + break; #ifdef TREE_RC_EXIT case TREE_RC_EXIT: #endif -- cgit v1.2.3