diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-09-29 22:05:21 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-09-29 22:05:21 +0000 |
commit | 46d2d3868b36616d5cdb714ffd25eb583c3372ba (patch) | |
tree | e87554cd0add4839398f1e02322a767c862020bb /apps | |
parent | 69befb58efe15e9b7aa43e43041920551aaeb649 (diff) |
Quickscreen now stays up after a quick key press only, not if key is held down
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2442 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/screens.c | 8 | ||||
-rw-r--r-- | apps/tree.c | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/apps/screens.c b/apps/screens.c index 00106df8ba..53d043827a 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -230,6 +230,10 @@ bool f2_screen(void) used = true; break; + case BUTTON_F2 | BUTTON_REPEAT: + used = true; + break; + case SYS_USB_CONNECTED: usb_screen(); return true; @@ -290,6 +294,10 @@ bool f3_screen(void) used = true; break; + case BUTTON_F3 | BUTTON_REPEAT: + used = true; + break; + case SYS_USB_CONNECTED: usb_screen(); return true; diff --git a/apps/tree.c b/apps/tree.c index b31d9aaf4c..ca6aeba184 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -125,7 +125,7 @@ extern unsigned char bitmap_icons_6x8[LastIcon][6]; #define TREE_EXIT BUTTON_LEFT #define TREE_ENTER BUTTON_RIGHT #define TREE_MENU BUTTON_F1 -#define RELEASE_MASK (BUTTON_OFF | BUTTON_F2 | BUTTON_F3) +#define RELEASE_MASK (BUTTON_OFF | BUTTON_ON | BUTTON_F2 | BUTTON_F3) #else #define TREE_NEXT BUTTON_RIGHT #define TREE_PREV BUTTON_LEFT @@ -613,6 +613,7 @@ bool dirbrowse(char *root) start_resume(); button_set_release(RELEASE_MASK); + button_set_repeat(~0); numentries = showdir(currdir, dirstart); if (numentries == -1) |