diff --git a/source/screens/scriptBrowse.cpp b/source/screens/scriptBrowse.cpp index e04e7c6..e337e4c 100644 --- a/source/screens/scriptBrowse.cpp +++ b/source/screens/scriptBrowse.cpp @@ -141,10 +141,10 @@ void ScriptBrowse::Logic(u32 hDown, u32 hHeld, touchPosition touch) { } else { selection = 0; } - if (fastMode) { + if (fastMode == true) { keyRepeatDelay = 3; - } else { - keyRepeatDelay = 12; + } else if (fastMode == false){ + keyRepeatDelay = 6; } } @@ -154,10 +154,10 @@ void ScriptBrowse::Logic(u32 hDown, u32 hHeld, touchPosition touch) { } else { selection = (int)infoJson.size()-1; } - if (fastMode) { + if (fastMode == true) { keyRepeatDelay = 3; - } else { - keyRepeatDelay = 12; + } else if (fastMode == false){ + keyRepeatDelay = 6; } } diff --git a/source/screens/scriptlist.cpp b/source/screens/scriptlist.cpp index 8df8ca6..a46750c 100644 --- a/source/screens/scriptlist.cpp +++ b/source/screens/scriptlist.cpp @@ -355,10 +355,10 @@ void ScriptList::ListSelection(u32 hDown, u32 hHeld) { } else { selection = 0; } - if (fastMode) { + if (fastMode == true) { keyRepeatDelay = 3; - } else { - keyRepeatDelay = 12; + } else if (fastMode == false){ + keyRepeatDelay = 6; } } if (hHeld & KEY_UP && !keyRepeatDelay) { @@ -367,10 +367,10 @@ void ScriptList::ListSelection(u32 hDown, u32 hHeld) { } else { selection = (int)fileInfo.size()-1; } - if (fastMode) { + if (fastMode == true) { keyRepeatDelay = 3; - } else { - keyRepeatDelay = 12; + } else if (fastMode == false){ + keyRepeatDelay = 6; } } @@ -406,10 +406,10 @@ void ScriptList::SelectFunction(u32 hDown, u32 hHeld) { } else { selection2 = 0; } - if (fastMode) { + if (fastMode == true) { keyRepeatDelay = 3; - } else { - keyRepeatDelay = 12; + } else if (fastMode == false){ + keyRepeatDelay = 6; } } if (hHeld & KEY_UP && !keyRepeatDelay) { @@ -418,10 +418,10 @@ void ScriptList::SelectFunction(u32 hDown, u32 hHeld) { } else { selection2 = (int)fileInfo2.size()-1; } - if (fastMode) { + if (fastMode == true) { keyRepeatDelay = 3; - } else { - keyRepeatDelay = 12; + } else if (fastMode == false){ + keyRepeatDelay = 6; } } if (hDown & KEY_A) {