diff --git a/es-app/src/guis/GuiGamelistOptions.cpp b/es-app/src/guis/GuiGamelistOptions.cpp index 49908df46..7c457c4a5 100644 --- a/es-app/src/guis/GuiGamelistOptions.cpp +++ b/es-app/src/guis/GuiGamelistOptions.cpp @@ -101,7 +101,7 @@ GuiGamelistOptions::GuiGamelistOptions(Window* window, SystemData* system) // Enable key repeat so that the left or right button can be held to cycle through // the letters. - mJumpToLetterList->setKeyRepeat(true); + mJumpToLetterList->setKeyRepeat(true, 650, 200); // Populate the quick selector. for (unsigned int i = 0; i < mFirstLetterIndex.size(); i++) { @@ -139,7 +139,7 @@ GuiGamelistOptions::GuiGamelistOptions(Window* window, SystemData* system) // Enable key repeat so that the left or right button can be held to cycle through // the sort options. - mListSort->setKeyRepeat(true); + mListSort->setKeyRepeat(true, 650, 400); // Don't show the sort type option if the gamelist type is recent/last played. if (system->getName() != "recent") diff --git a/es-core/src/components/OptionListComponent.h b/es-core/src/components/OptionListComponent.h index aee07d240..0875224ee 100644 --- a/es-core/src/components/OptionListComponent.h +++ b/es-core/src/components/OptionListComponent.h @@ -247,7 +247,15 @@ public: } void setOverrideMultiText(const std::string& text) { mOverrideMultiText = text; } - void setKeyRepeat(bool state) { mKeyRepeat = state; } + + void setKeyRepeat(bool state, + int delay = OPTIONLIST_REPEAT_START_DELAY, + int speed = OPTIONLIST_REPEAT_SPEED) + { + mKeyRepeat = state; + mKeyRepeatStartDelay = delay; + mKeyRepeatSpeed = speed; + } void update(int deltaTime) override {