From ea40de713046d2a15993ec2bdd02fcd2bb24ee39 Mon Sep 17 00:00:00 2001 From: Epicpkmn11 Date: Wed, 6 Nov 2019 14:27:49 -0600 Subject: [PATCH] Revert "Set keyRepeatDelay to 12 instead of 6" This reverts commit 2e0b5352ae068d6f4f862ac0be1c04b8125027b6. --- source/screens/scriptBrowse.cpp | 12 ++++++------ source/screens/scriptlist.cpp | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 18 deletions(-) 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) {