Better start l0dable with no keys pressed. Most don't like it.

This commit is contained in:
Stefan `Sec` Zehl 2012-01-31 17:49:20 +01:00
parent 1083f8aa4f
commit b9e054c08c
1 changed files with 2 additions and 0 deletions

View File

@ -122,10 +122,12 @@ int selectFile(char *filename, const char *extension)
}
break;
case BTN_LEFT:
getInputWaitRelease();
return -1;
case BTN_ENTER:
case BTN_RIGHT:
strcpy(filename, files[selected]);
getInputWaitRelease();
return 0;
}
}