Press L/R for page forward scroll.

Also do keyDelay as a setting instead of hardcode to 3 (fast) 6 (slow).
This commit is contained in:
StackZ
2020-05-06 06:27:25 +02:00
parent 1c2a0de856
commit c8289ff632
12 changed files with 246 additions and 112 deletions
-1
View File
@@ -60,7 +60,6 @@ private:
// Browse stuff.
int keyRepeatDelay = 0;
int fastMode = false;
std::vector<DirEntry> dirContents;
void refresh();
void downloadAll();
-1
View File
@@ -86,7 +86,6 @@ private:
// Browse stuff.
int keyRepeatDelay = 0;
std::vector<DirEntry> dirContents;
int fastMode = false;
// Button | Icon structs.
+1 -14
View File
@@ -61,20 +61,7 @@ private:
std::vector<Structs::ButtonPos> mainButtons = {
{80, 30, 149, 52}, // Language.
{80, 90, 149, 52}, // Colors.
{80, 150, 149, 52} // Misc.
};
std::vector<Structs::ButtonPos> langBlocks = {
{37, 32, 20, 20},
{37, 72, 20, 20},
{37, 112, 20, 20},
{37, 152, 20, 20},
{37, 188, 20, 20},
{177, 32, 20, 20},
{177, 72, 20, 20},
{177, 112, 20, 20},
{177, 152, 20, 20},
{177, 188, 20, 20},
{80, 150, 149, 52} // Credits.
};
std::vector<Structs::ButtonPos> arrowPos = {
-1
View File
@@ -85,7 +85,6 @@ private:
// Browse stuff.
int keyRepeatDelay = 0;
int fastMode = false;
std::vector<DirEntry> dirContents;
// Other stuff.
+1 -1
View File
@@ -30,7 +30,7 @@
#include <string>
namespace Config {
extern int LangPath, Color1, Color2, Color3, TxtColor, SelectedColor, UnselectedColor, viewMode, progressbarColor, autoboot, outdated, uptodate, notFound, future, Button;
extern int LangPath, Color1, Color2, Color3, TxtColor, SelectedColor, UnselectedColor, viewMode, progressbarColor, autoboot, outdated, uptodate, notFound, future, Button, keyDelay;
extern std::string lang, ScriptPath, MusicPath, StorePath, AutobootFile;
extern bool Logging, UseBars, GodMode;