keep scrolling when the button keeps being pressed

(cherry picked from commit dcb720ac223304e6c0b238403dda3ca851c15ef0)

Signed-off-by: Stefan `Sec` Zehl <sec@42.org>
This commit is contained in:
Ralf Jung 2011-12-28 22:53:07 +01:00 committed by Stefan `Sec` Zehl
parent 1fda56be1e
commit 76b87e26ff
1 changed files with 1 additions and 2 deletions

View File

@ -93,8 +93,7 @@ int selectFile(char *filename, const char *extension)
files[i][dot]='.'; files[i][dot]='.';
} }
lcdRefresh(); lcdRefresh();
key=getInputWait(); key=getInputWaitRepeat();
getInputWaitRelease();
switch(key){ switch(key){
case BTN_DOWN: case BTN_DOWN:
if( selected < count-1 ){ if( selected < count-1 ){